statsd_exporter/.golangci.yml
Matthias Rampke 77d911b7fe
Enable all govet linters except fieldalignment
When linting, govet complains about the deprecated `check-shadowing` setting.
Replace it with enabling all currently passing linters. This excludes only
`fieldalignment`.

Signed-off-by: Matthias Rampke <matthias@prometheus.io>
2024-09-15 09:40:28 +00:00

26 lines
461 B
YAML

run:
issues-exit-code: 1
tests: true
linters:
disable:
- errcheck
enable:
- goimports
- gosimple
- govet
- ineffassign
- nakedret
- staticcheck
- unused
- whitespace
linters-settings:
govet:
enable-all: true
disable:
- fieldalignment
issues:
exclude-use-default: false
exclude:
- 'shadow: declaration of "err" shadows declaration at line (\d+)'
max-issues-per-linter: 0
max-same-issues: 0