1
0
mirror of https://github.com/prometheus-community/bind_exporter.git synced 2025-04-18 13:04:01 +03:00
bind_exporter/.golangci.yml
Ben Kochie 06daa66fc4
Cleanup golangci-lint config (#219)
* Remove obsolete go-kit exception.
* Remove codespell CI step in favor of misspell plugin.
* Enable sloglint plugin.

Signed-off-by: SuperQ <superq@gmail.com>
2024-11-07 10:39:07 +01:00

25 lines
509 B
YAML

---
linters:
enable:
- misspell
- revive
- sloglint
issues:
exclude-rules:
- path: _test.go
linters:
- errcheck
linters-settings:
errcheck:
exclude-functions:
# Used in HTTP handlers, any error is handled by the server itself.
- (net/http.ResponseWriter).Write
revive:
rules:
# https://github.com/mgechev/revive/blob/master/RULES_DESCRIPTIONS.md#unused-parameter
- name: unused-parameter
severity: warning
disabled: true