29 lines
692 B
YAML
29 lines
692 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, gosec]
|
|
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
|