update golangci to 1.10.2 (#1246)
This commit is contained in:
parent
b9baa48d87
commit
b71058d73f
|
@ -3,8 +3,6 @@ run:
|
||||||
deadline: 1m
|
deadline: 1m
|
||||||
issues-exit-code: 1
|
issues-exit-code: 1
|
||||||
tests: true
|
tests: true
|
||||||
# build-tags:
|
|
||||||
# - mytag
|
|
||||||
skip-dirs:
|
skip-dirs:
|
||||||
- static
|
- static
|
||||||
skip-files:
|
skip-files:
|
||||||
|
@ -35,19 +33,13 @@ linters-settings:
|
||||||
goconst:
|
goconst:
|
||||||
min-len: 3
|
min-len: 3
|
||||||
min-occurrences: 2
|
min-occurrences: 2
|
||||||
# depguard:
|
|
||||||
# list-type: blacklist
|
|
||||||
# include-go-root: false
|
|
||||||
# packages:
|
|
||||||
# - github.com/davecgh/go-spew/spew
|
|
||||||
|
|
||||||
linters:
|
linters:
|
||||||
disable-all: true
|
disable-all: true
|
||||||
enable:
|
enable:
|
||||||
- deadcode
|
- deadcode
|
||||||
#- depguard
|
|
||||||
- errcheck
|
- errcheck
|
||||||
- gas
|
- gosec
|
||||||
- goconst
|
- goconst
|
||||||
- gocyclo
|
- gocyclo
|
||||||
- gofmt
|
- gofmt
|
||||||
|
@ -66,9 +58,5 @@ linters:
|
||||||
issues:
|
issues:
|
||||||
exclude:
|
exclude:
|
||||||
- "composite literal uses unkeyed fields" # govet
|
- "composite literal uses unkeyed fields" # govet
|
||||||
# exclude-use-default: true
|
- "G304: Potential file inclusion via variable" # gosec
|
||||||
# max-per-linter: 0
|
- "G104: Errors unhandled." #gosec
|
||||||
# max-same: 0
|
|
||||||
# new: false
|
|
||||||
# new-from-rev: ""
|
|
||||||
# new-from-patch: ""
|
|
||||||
|
|
2
Makefile
2
Makefile
|
@ -255,7 +255,7 @@ test-e2e-race: test-e2e ##@tests Run e2e tests with -race flag
|
||||||
|
|
||||||
lint-install:
|
lint-install:
|
||||||
@# The following installs a specific version of golangci-lint, which is appropriate for a CI server to avoid different results from build to build
|
@# The following installs a specific version of golangci-lint, which is appropriate for a CI server to avoid different results from build to build
|
||||||
curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | bash -s -- -b $(GOPATH)/bin v1.9.1
|
curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | bash -s -- -b $(GOPATH)/bin v1.10.2
|
||||||
|
|
||||||
lint:
|
lint:
|
||||||
@echo "lint"
|
@echo "lint"
|
||||||
|
|
Loading…
Reference in New Issue