2021-10-03 11:30:18 +00:00
|
|
|
linters:
|
2021-10-05 11:21:42 +00:00
|
|
|
enable:
|
|
|
|
- golint
|
2021-10-03 11:30:18 +00: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
|
|
|
|
- deadcode
|
|
|
|
- unused
|
|
|
|
- structcheck
|
|
|
|
- varcheck
|
|
|
|
|
|
|
|
issues:
|
|
|
|
exclude-rules:
|
|
|
|
- path: _test.go
|
|
|
|
linters:
|
|
|
|
- errcheck
|
|
|
|
|
|
|
|
linters-settings:
|
|
|
|
errcheck:
|
|
|
|
exclude: scripts/errcheck_excludes.txt
|