fix: update .golangci.yml to v2 config format
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

golangci-lint v2 requires version: "2" at the top level, linters.settings
(not linters-settings), and issues.exclusions.rules (not issues.exclude-rules).
Also removed gosimple and unused which are now merged into staticcheck.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
Head of Product & Engineering 2026-04-05 21:39:28 +02:00
parent 12c547d215
commit 8f2080203d

View File

@ -1,25 +1,24 @@
version: "2"
linters: linters:
enable: enable:
- errcheck - errcheck
- govet - govet
- staticcheck - staticcheck
- gosimple
- ineffassign - ineffassign
- unused
- errorlint - errorlint
- gocritic - gocritic
- revive - revive
settings:
linters-settings: revive:
revive: rules:
rules: - name: exported
- name: exported disabled: true
disabled: true
issues: issues:
exclude-rules: exclusions:
# Test files can use dot-imports and assertion helpers freely rules:
- path: _test\.go - path: _test\.go
linters: linters:
- errcheck - errcheck
- gocritic - gocritic