update golangci to 1.10.2 (#1246)
This commit is contained in:
parent
b9baa48d87
commit
b71058d73f
|
@ -3,8 +3,6 @@ run:
|
|||
deadline: 1m
|
||||
issues-exit-code: 1
|
||||
tests: true
|
||||
# build-tags:
|
||||
# - mytag
|
||||
skip-dirs:
|
||||
- static
|
||||
skip-files:
|
||||
|
@ -35,19 +33,13 @@ linters-settings:
|
|||
goconst:
|
||||
min-len: 3
|
||||
min-occurrences: 2
|
||||
# depguard:
|
||||
# list-type: blacklist
|
||||
# include-go-root: false
|
||||
# packages:
|
||||
# - github.com/davecgh/go-spew/spew
|
||||
|
||||
linters:
|
||||
disable-all: true
|
||||
enable:
|
||||
- deadcode
|
||||
#- depguard
|
||||
- errcheck
|
||||
- gas
|
||||
- gosec
|
||||
- goconst
|
||||
- gocyclo
|
||||
- gofmt
|
||||
|
@ -66,9 +58,5 @@ linters:
|
|||
issues:
|
||||
exclude:
|
||||
- "composite literal uses unkeyed fields" # govet
|
||||
# exclude-use-default: true
|
||||
# max-per-linter: 0
|
||||
# max-same: 0
|
||||
# new: false
|
||||
# new-from-rev: ""
|
||||
# new-from-patch: ""
|
||||
- "G304: Potential file inclusion via variable" # gosec
|
||||
- "G104: Errors unhandled." #gosec
|
||||
|
|
2
Makefile
2
Makefile
|
@ -255,7 +255,7 @@ test-e2e-race: test-e2e ##@tests Run e2e tests with -race flag
|
|||
|
||||
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
|
||||
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:
|
||||
@echo "lint"
|
||||
|
|
Loading…
Reference in New Issue