Skip to content

Commit f4c2b35

Browse files
Disable soon to deprecated linters
These lead to false positives when build tags disable certain files as reported in #1545 They'll get deprecated and removed eventually anyway: golangci/golangci-lint#1841 Signed-off-by: Johannes 'fish' Ziemke <[email protected]>
1 parent b6215e6 commit f4c2b35

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.golangci.yml

Lines changed: 9 additions & 0 deletions
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)