diff --git a/.golangci.yaml b/.golangci.yaml index f457cd1..9c5fa6a 100644 --- a/.golangci.yaml +++ b/.golangci.yaml @@ -43,6 +43,9 @@ linters-settings: # Applications wishing to use http.ServeMux should obtain local instances through http.NewServeMux() instead of using the global default instance. - ^http\.DefaultServeMux$ - ^http\.Handle(?:Func)?$ + goconst: + ignore-tests: true + min-occurrences: 5 gocritic: enabled-checks: - boolExprSimplify @@ -116,10 +119,12 @@ linters: - dupword - durationcheck - errcheck + - errname - errorlint - forbidigo - ginkgolinter - gocheckcompilerdirectives + - goconst - gocritic - gofmt - goimports @@ -129,10 +134,12 @@ linters: - ineffassign - intrange - misspell + - nilerr - noctx - nolintlint - nosprintfhostport - perfsprint + - predeclared - rowserrcheck - sqlclosecheck - staticcheck