chore: migrate golangci-lint config to v2

golangci-lint v2 rejects the old config format, so the pre-commit hook failed on every commit. The config now uses version 2 with the same linters and exclusions.
This commit is contained in:
2026-10-02 22:07:12 +01:00
parent dd57ec8b8e
commit 6322e0e658
+21 -12
View File
@@ -1,19 +1,28 @@
run: version: "2"
timeout: 5m
linters: linters:
enable: enable:
- gosec - gosec
- staticcheck settings:
linters-settings:
gosec: gosec:
excludes: []
confidence: low
severity: medium severity: medium
confidence: low
issues: exclusions:
exclude-dirs: generated: lax
presets:
- comments
- common-false-positives
- legacy
- std-error-handling
paths:
- .repos - .repos
- web - web
exclude-dirs-use-default: true - third_party$
- builtin$
- examples$
formatters:
exclusions:
generated: lax
paths:
- third_party$
- builtin$
- examples$