diff --git a/.golangci.yml b/.golangci.yml index 92c94a5348f4..01891e752b4b 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -3,7 +3,10 @@ linters: - bodyclose - depguard - dogsled + - durationcheck + - exportloopref # Checks for pointers to enclosing loop variables - gocyclo + - gofmt - goimports - gosec - gosimple @@ -13,12 +16,24 @@ linters: - megacheck - misspell - nakedret + - nolintlint +# - paralleltest +# - predeclared + - prealloc + - reassign - revive - staticcheck + - stylecheck # Replacement for golint + - tenv # Detects using os.Setenv instead of t.Setenv since Go 1.17 +# - thelper + - tparallel - typecheck - unconvert - unparam - unused + - usestdlibvars + - vet + - wastedassign disable: - errcheck @@ -122,6 +137,9 @@ issues: linters: - errcheck - gosec + - text: "ST1000: at least one file in a package should have a package comment" + linters: + - stylecheck # Maximum issues count per one linter. Set to 0 to disable. Default is 50. max-issues-per-linter: 0