2020-02-27 11:59:02 +01:00
|
|
|
linters:
|
|
|
|
enable:
|
2021-10-27 11:01:15 +02:00
|
|
|
- revive
|
2021-09-14 17:36:28 +02:00
|
|
|
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
|
2021-09-29 20:12:14 +02:00
|
|
|
- deadcode
|
|
|
|
- unused
|
|
|
|
- structcheck
|
|
|
|
- varcheck
|
2020-02-27 11:59:02 +01:00
|
|
|
|
2019-05-06 15:42:50 +02:00
|
|
|
issues:
|
|
|
|
exclude-rules:
|
2021-09-29 20:12:14 +02:00
|
|
|
- path: _test.go
|
|
|
|
linters:
|
|
|
|
- errcheck
|
2019-05-06 15:42:50 +02:00
|
|
|
|
|
|
|
linters-settings:
|
|
|
|
errcheck:
|
|
|
|
exclude: scripts/errcheck_excludes.txt
|