Files
syncwarden/.golangci.yml
Axel Meyer 2e167f0bd1
Some checks failed
CI / lint (push) Failing after 31s
CI / test (push) Successful in 31s
Fix golangci-lint v2 config: use linters.exclusions format
v2 moved issues.exclude-rules to linters.exclusions.rules and
issues.exclude-dirs to linters.exclusions.paths. Enable the
std-error-handling preset for defer Close() patterns.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-04 01:09:18 +01:00

29 lines
685 B
YAML

version: "2"
linters:
enable:
- errcheck
- gosec
- govet
- ineffassign
- staticcheck
- unused
exclusions:
presets:
- std-error-handling
rules:
# binary.Write in ICO header encoding — panic-level errors only
- path: internal/icons/render\.go
linters: [errcheck]
source: "binary\\.Write"
# systray menu.ShowMenu has no meaningful error
- path: internal/tray/
linters: [errcheck]
source: "ShowMenu"
# Setup binary is a CLI wizard; best-effort error handling is acceptable
- path: cmd/setup/
linters: [errcheck, gosec]
paths:
- cmd/panel
- cmd/icongen