chore: enable additional golangci-lint linters

This commit is contained in:
2026-06-13 21:22:29 +02:00
parent 6918f0bf48
commit 8304c0a338

View File

@@ -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: