Disable soon to deprecated linters (#2129)
These lead to false positives when build tags disable certain files as reported in https://github.com/prometheus/node_exporter/issues/1545 They'll get deprecated and removed eventually anyway: https://github.com/golangci/golangci-lint/issues/1841 Signed-off-by: Johannes 'fish' Ziemke <github@freigeist.org>
This commit is contained in:
parent
d6d4c6e1ca
commit
c10aa42a4f
|
@ -1,6 +1,15 @@
|
||||||
linters:
|
linters:
|
||||||
enable:
|
enable:
|
||||||
- golint
|
- golint
|
||||||
|
disable:
|
||||||
|
# Disable soon to deprecated[1] linters that lead to false
|
||||||
|
# positives when build tags disable certain files[2]
|
||||||
|
# 1: https://github.com/golangci/golangci-lint/issues/1841
|
||||||
|
# 2: https://github.com/prometheus/node_exporter/issues/1545
|
||||||
|
- deadcode
|
||||||
|
- unused
|
||||||
|
- structcheck
|
||||||
|
- varcheck
|
||||||
|
|
||||||
issues:
|
issues:
|
||||||
exclude-rules:
|
exclude-rules:
|
||||||
|
|
Loading…
Reference in New Issue