chore: upgrade golangci-lint

This commit is contained in:
andig 2025-04-01 12:44:21 +02:00
parent 9000244bea
commit dca0787572

View file

@ -1,23 +1,10 @@
version: "2"
run:
go: "1.24"
issues:
exclude:
- .regActualCurrent. is unused
- "`routeLogger` is unused"
linters-settings:
staticcheck:
checks:
- "-SA1019"
linters:
disable-all: true
default: none
enable:
- durationcheck
- gci
- gofmt
- goimports
- goprintffuncname
- govet
- importas
@ -29,26 +16,38 @@ linters:
- sqlclosecheck
- staticcheck
- tparallel
- typecheck
- unconvert
- unused
- wastedassign
- whitespace
# fixme
# - dogsled
# - bodyclose
# - exhaustive
# - exportloopref
# - gocritic
# - godot
# - gomoddirectives
# - nakedret
# - nilerr
# - noctx
# - prealloc
# - predeclared
# - revive
# - stylecheck
# - unparam
# - dupl
settings:
staticcheck:
checks:
- -SA1019
exclusions:
generated: lax
presets:
- comments
- common-false-positives
- legacy
- std-error-handling
rules:
- path: (.+)\.go$
text: .regActualCurrent. is unused
- path: (.+)\.go$
text: '`routeLogger` is unused'
paths:
- third_party$
- builtin$
- examples$
formatters:
enable:
- gci
- gofmt
- goimports
exclusions:
generated: lax
paths:
- third_party$
- builtin$
- examples$