diff --git a/.golangci.yaml b/.golangci.yaml index 345ba5e0..f9556e87 100644 --- a/.golangci.yaml +++ b/.golangci.yaml @@ -7,35 +7,83 @@ linters-settings: locale: "US" linters: - enable-all: true - disable: - - stylecheck - - gosec - - dupl - - maligned - - depguard - - lll - - prealloc - - scopelint - - gocritic - - gochecknoinits - - gochecknoglobals - - godox - - funlen - - wsl - - whitespace - - gomnd - - typecheck - - godot - - errname - - nlreturn - - wrapcheck + disable-all: false + enable: + - asasalint + - asciicheck + - bidichk + - bodyclose + - containedctx + - decorder + - dogsled + - dupword + - durationcheck + - errcheck + - errchkjson + - errorlint + - exhaustive + - exportloopref + - forbidigo + - forcetypeassert + - gci + - ginkgolinter + - gocheckcompilerdirectives + - gochecksumtype + - gocognit + - goconst + - gocyclo + - gofmt + - gofumpt + - goheader + - goimports + - gomoddirectives + - gomodguard + - goprintffuncname + - gosimple + - gosmopolitan + - govet + - grouper + - importas + - inamedparam + - ineffassign + - interfacebloat + - ireturn + - loggercheck + - maintidx + - makezero + - mirror + - misspell + - nakedret + - nestif + - nolintlint + - nonamedreturns + - nosprintfhostport + - paralleltest + - perfsprint + - predeclared + - promlinter + - reassign + - revive + - spancheck + - staticcheck + - tagalign + - tenv + - testableexamples + - testifylint + - thelper + - unconvert + - unparam + - unused + - usestdlibvars + - wastedassign issues: exclude-use-default: true max-issues-per-linter: 0 max-same-issues: 0 # The following excludes are considered false-positives/known-OK. + exclude: + - fmt.Sprintf can be replaced with string exclude-rules: - path: ca([/|\\])ca.go text: 'type name will be used as ca.CAImpl by other packages, and that stutters; consider calling this Impl'