diff --git a/.golangci.yml b/.golangci.yml index 46f1f3c959ee..22c779249b00 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -3,6 +3,8 @@ linters: - bodyclose - depguard - dogsled + - durationcheck + - exportloopref # Checks for pointers to enclosing loop variables - gocyclo - gofumpt - goimports @@ -14,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 @@ -123,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