Skip to content

Commit 43e8c50

Browse files
discordianfishoblitorum
authored andcommitted
Disable soon to deprecated linters (prometheus#2129)
These lead to false positives when build tags disable certain files as reported in prometheus#1545 They'll get deprecated and removed eventually anyway: golangci/golangci-lint#1841 Signed-off-by: Johannes 'fish' Ziemke <[email protected]>
1 parent 9e6b625 commit 43e8c50

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.golangci.yml

+9
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
linters:
22
enable:
33
- golint
4+
disable:
5+
# Disable soon to deprecated[1] linters that lead to false
6+
# positives when build tags disable certain files[2]
7+
# 1: https://github.com/golangci/golangci-lint/issues/1841
8+
# 2: https://github.com/prometheus/node_exporter/issues/1545
9+
- deadcode
10+
- unused
11+
- structcheck
12+
- varcheck
413

514
issues:
615
exclude-rules:

0 commit comments

Comments
 (0)