json_exporter/.golangci.yml
TJ Hoplock 9cdeb9f48f chore!: adopt slog, drop go-kit/log
The bulk of this change set was automated by the following script which
is being used to aid in converting the various exporters/projects to use
slog:

https://gist.github.com/tjhop/49f96fb7ebbe55b12deee0b0312d8434

Signed-off-by: TJ Hoplock <t.hoplock@gmail.com>
2024-10-17 22:29:14 -04:00

21 lines
371 B
YAML

linters:
enable:
- 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:
- name: unused-parameter
disabled: true