mirror of
https://github.com/prometheus-community/json_exporter
synced 2025-02-03 05:11:51 +00:00
a330d80e8f
* Update to Go 1.22. * Update golangci-lint settings. * Sync files from prometheus/prometheus. Signed-off-by: SuperQ <superq@gmail.com>
22 lines
438 B
YAML
22 lines
438 B
YAML
linters:
|
|
enable:
|
|
- revive
|
|
|
|
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
|
|
# Never check for logger errors.
|
|
- (github.com/go-kit/log.Logger).Log
|
|
revive:
|
|
rules:
|
|
- name: unused-parameter
|
|
disabled: true
|