Files
metric/.golangci.yml
Zach Kelling d73dcaa5b5 fix: disable errcheck linter for metrics code
Metrics handlers intentionally ignore fmt.Fprintf and io.Closer
errors as is standard practice for metrics exposition.
2026-02-13 16:57:08 -08:00

13 lines
436 B
YAML

version: "2"
linters:
disable:
- unused # Registry methods implement exported interfaces; false positives on private type methods
- errcheck # Metrics code intentionally ignores fmt.Fprintf and io.Closer errors
linters-settings:
errcheck:
exclude-functions:
- (github.com/prometheus/client_golang/prometheus.Registerer).Register
- (github.com/prometheus/client_golang/prometheus.Registerer).MustRegister