diff --git a/.golangci.yml b/.golangci.yml index f32a80a9b3dc4d8c895743947eac795fc1320773..6459d64f436b2d415f3bf293d4748f3a10d1bba0 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -284,7 +284,7 @@ linters: - tenv # detects using os.Setenv instead of t.Setenv since Go1.17 - testableexamples # checks if examples are testable (have an expected output) - testifylint # checks usage of github.com/stretchr/testify - - testpackage # makes you use a separate _test package + #- testpackage # makes you use a separate _test package - unconvert # removes unnecessary type conversions - unparam # reports unused function parameters - usestdlibvars # detects the possibility to use variables/constants from the Go standard library @@ -351,4 +351,14 @@ issues: - goconst - gosec - noctx - - wrapcheck \ No newline at end of file + - wrapcheck + - mnd + - path: "_middleware\\.go" + linters: + - nonamedreturns + - path: "test/.*\\.go" + linters: + - mnd + - text: "shadow: declaration of \"(err|ctx)\" shadows declaration at" + linters: + - govet \ No newline at end of file