[NO TESTS NEEDED] Update linter
Signed-off-by: Matej Vasek <mvasek@redhat.com>
This commit is contained in:
parent
2d829aeb1f
commit
68133414f4
|
@ -4,6 +4,7 @@ run:
|
||||||
deadline: 5m
|
deadline: 5m
|
||||||
skip-dirs-use-default: true
|
skip-dirs-use-default: true
|
||||||
skip-dirs:
|
skip-dirs:
|
||||||
|
- dependencies
|
||||||
- contrib
|
- contrib
|
||||||
- dependencies
|
- dependencies
|
||||||
- test
|
- test
|
||||||
|
@ -17,6 +18,34 @@ linters:
|
||||||
enable-all: true
|
enable-all: true
|
||||||
disable:
|
disable:
|
||||||
# All these break for one reason or another
|
# All these break for one reason or another
|
||||||
|
- nolintlint
|
||||||
|
- gocognit
|
||||||
|
- stylecheck
|
||||||
|
- testpackage
|
||||||
|
- goerr113
|
||||||
|
- exhaustivestruct
|
||||||
|
- errorlint
|
||||||
|
- wrapcheck
|
||||||
|
- paralleltest
|
||||||
|
- wsl
|
||||||
|
- godox
|
||||||
|
- tparallel
|
||||||
|
- gomnd
|
||||||
|
- nlreturn
|
||||||
|
- noctx
|
||||||
|
- nestif
|
||||||
|
- predeclared
|
||||||
|
- thelper
|
||||||
|
- ifshort
|
||||||
|
- staticcheck
|
||||||
|
- forbidigo
|
||||||
|
- exhaustive
|
||||||
|
- whitespace
|
||||||
|
- unparam
|
||||||
|
- gofumpt
|
||||||
|
- gci
|
||||||
|
- godot
|
||||||
|
- makezero
|
||||||
- dupl
|
- dupl
|
||||||
- funlen
|
- funlen
|
||||||
- gochecknoglobals
|
- gochecknoglobals
|
||||||
|
|
2
Makefile
2
Makefile
|
@ -619,7 +619,7 @@ endef
|
||||||
|
|
||||||
.PHONY: .install.golangci-lint
|
.PHONY: .install.golangci-lint
|
||||||
.install.golangci-lint: .gopathok
|
.install.golangci-lint: .gopathok
|
||||||
VERSION=1.18.0 GOBIN=$(GOBIN) sh ./hack/install_golangci.sh
|
VERSION=1.36.0 GOBIN=$(GOBIN) sh ./hack/install_golangci.sh
|
||||||
|
|
||||||
.PHONY: .install.bats
|
.PHONY: .install.bats
|
||||||
.install.bats: .gopathok
|
.install.bats: .gopathok
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
// +build !linter
|
||||||
|
|
||||||
package dependencies
|
package dependencies
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
|
|
@ -5,7 +5,7 @@ set -e
|
||||||
|
|
||||||
declare -A BUILD_TAGS
|
declare -A BUILD_TAGS
|
||||||
# TODO: add systemd tag
|
# TODO: add systemd tag
|
||||||
BUILD_TAGS[default]="apparmor,seccomp,selinux"
|
BUILD_TAGS[default]="apparmor,seccomp,selinux,linter"
|
||||||
BUILD_TAGS[abi]="${BUILD_TAGS[default]},!remoteclient"
|
BUILD_TAGS[abi]="${BUILD_TAGS[default]},!remoteclient"
|
||||||
BUILD_TAGS[tunnel]="${BUILD_TAGS[default]},remote,remoteclient"
|
BUILD_TAGS[tunnel]="${BUILD_TAGS[default]},remote,remoteclient"
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
// +build !remote
|
|
||||||
|
|
||||||
package abi
|
package abi
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
|
Loading…
Reference in New Issue