chore: enable additional golangci-lint linters
This commit is contained in:
@@ -6,24 +6,55 @@ linters:
|
|||||||
- bodyclose
|
- bodyclose
|
||||||
- copyloopvar
|
- copyloopvar
|
||||||
- cyclop
|
- cyclop
|
||||||
|
- dogsled
|
||||||
- dupl
|
- dupl
|
||||||
- errcheck
|
- errcheck
|
||||||
- funlen
|
- funlen
|
||||||
- gocognit
|
- gocognit
|
||||||
|
- gocritic
|
||||||
- gocyclo
|
- gocyclo
|
||||||
- govet
|
- govet
|
||||||
- ineffassign
|
- ineffassign
|
||||||
- maintidx
|
- maintidx
|
||||||
|
- makezero
|
||||||
- nakedret
|
- nakedret
|
||||||
- nilerr
|
- nilerr
|
||||||
- noctx
|
- noctx
|
||||||
|
- prealloc
|
||||||
|
- predeclared
|
||||||
- revive
|
- revive
|
||||||
- staticcheck
|
- staticcheck
|
||||||
- unconvert
|
- unconvert
|
||||||
- unparam
|
- unparam
|
||||||
- unused
|
- unused
|
||||||
|
- usestdlibvars
|
||||||
- wastedassign
|
- wastedassign
|
||||||
|
- whitespace
|
||||||
settings:
|
settings:
|
||||||
|
gocritic:
|
||||||
|
disable-all: true
|
||||||
|
enabled-checks:
|
||||||
|
- appendCombine
|
||||||
|
- boolExprSimplify
|
||||||
|
- commentedOutCode
|
||||||
|
- commentedOutImport
|
||||||
|
- deferUnlambda
|
||||||
|
- dupBranchBody
|
||||||
|
- dupImport
|
||||||
|
- dupSubExpr
|
||||||
|
- emptyDecl
|
||||||
|
- emptyFallthrough
|
||||||
|
- emptyStringTest
|
||||||
|
- equalFold
|
||||||
|
- redundantSprint
|
||||||
|
- regexpPattern
|
||||||
|
- stringConcatSimplify
|
||||||
|
- typeUnparen
|
||||||
|
- underef
|
||||||
|
- unlambda
|
||||||
|
- unnecessaryBlock
|
||||||
|
- unnecessaryDefer
|
||||||
|
- unslice
|
||||||
revive:
|
revive:
|
||||||
enable-all-rules: false
|
enable-all-rules: false
|
||||||
rules:
|
rules:
|
||||||
|
|||||||
Reference in New Issue
Block a user