smartctl_exporter/.golangci.yml

26 lines
529 B
YAML
Raw Permalink Normal View History

linters:
enable:
- misspell
- revive
- sloglint
disable:
- unused
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