diff --git a/.golangci.yml b/.golangci.yml index 9d1d3d5835ee..3b5e4704b853 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -4,7 +4,10 @@ linters: - deadcode - depguard - dogsled + - errchkjson + - exportloopref # Checks for pointers to enclosing loop variables - gocyclo + - gofmt - goimports - gosec - gosimple @@ -14,12 +17,22 @@ linters: - megacheck - misspell - nakedret + - nolintlint +# - paralleltest +# - predeclared + - 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 - - revive + - usestdlibvars + - vet disable: - errcheck @@ -112,6 +125,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