golangci-lint: add custom linter settings...
...for: * gocritic * gocyclo * govet
This commit is contained in:
parent
f3e481395e
commit
7121d8f91a
@ -45,9 +45,26 @@ linters:
|
|||||||
- wsl
|
- wsl
|
||||||
|
|
||||||
linter-settings:
|
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:
|
gofumpt:
|
||||||
extra-rules: true
|
extra-rules: true
|
||||||
lang-version: "1.18"
|
lang-version: "1.18"
|
||||||
|
govet:
|
||||||
|
check-shadowing: true
|
||||||
revive:
|
revive:
|
||||||
severity: warning
|
severity: warning
|
||||||
confidence: 0.8
|
confidence: 0.8
|
||||||
|
Loading…
Reference in New Issue
Block a user