mirror of
https://github.com/prometheus/statsd_exporter.git
synced 2024-12-22 13:36:33 +00:00
77d911b7fe
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>
26 lines
461 B
YAML
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
|