chore: update golangci-lint to v2 and fix breakage

deps: update golangci/golangci-lint-action action to v8
This commit is contained in:
Julian Tölle 2025-06-07 18:36:26 +02:00
parent f49481cd92
commit cc84c29e8d
5 changed files with 53 additions and 21 deletions

View file

@ -1,14 +1,38 @@
version: "2"
linters:
presets:
- bugs
- error
- import
- metalinter
- module
- unused
enable:
- asasalint
- asciicheck
- bidichk
- bodyclose
- contextcheck
- durationcheck
- errchkjson
- errorlint
- exhaustive
- gocheckcompilerdirectives
- gochecksumtype
- gocritic
- gomoddirectives
- gomodguard
- gosec
- gosmopolitan
- loggercheck
- makezero
- musttag
- nilerr
- nilnesserr
- noctx
- protogetter
- reassign
- recvcheck
- rowserrcheck
- spancheck
- sqlclosecheck
- testifylint
- unparam
- zerologlint
- revive
disable:
# preset error
@ -18,10 +42,19 @@ linters:
# preset import
- depguard
linters-settings:
gci:
sections:
- standard
- default
- localmodule
settings:
revive:
rules:
- name: exported
disabled: true
formatters:
enable:
- gci
- goimports
settings:
gci:
sections:
- standard
- default
- localmodule