golangci-lint: add custom linter settings...
All checks were successful
continuous-integration/drone Build is passing
continuous-integration/drone/push Build is passing

...for:
  * gocritic
  * gocyclo
  * govet
This commit is contained in:
surtur 2022-06-12 02:20:13 +02:00
parent f3e481395e
commit 7121d8f91a
Signed by: wanderer
GPG Key ID: 19CE1EC1D9E0486D

@ -45,9 +45,26 @@ linters:
- wsl
linter-settings:
gocritic:
enabled-tags:
- diagnostic
- experimental
- opinionated
- performance
- style
disabled-checks:
- dupImport # https://github.com/go-critic/go-critic/issues/845
- ifElseChain
- octalLiteral
- whyNoLint
- wrapperFunc
gocyclo:
min-complexity: 15
gofumpt:
extra-rules: true
lang-version: "1.18"
govet:
check-shadowing: true
revive:
severity: warning
confidence: 0.8