mirror of
https://github.com/prometheus-community/json_exporter
synced 2025-02-17 03:56:50 +00:00
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>
21 lines
371 B
YAML
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
|