mirror of
https://github.com/prometheus/node_exporter.git
synced 2024-11-23 12:30:46 +01:00
186e2e79c8
After a recent change in prometheus/prometheus, Makefile.common includes now a yamllint target which currently fails. This PR adds the missing yamllint config and fixes the yamllint errors. Signed-off-by: Michal Wasilewski <mwasilewski@gmx.com>
23 lines
507 B
YAML
23 lines
507 B
YAML
linters:
|
|
enable:
|
|
- 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:
|
|
exclude-rules:
|
|
- path: _test.go
|
|
linters:
|
|
- errcheck
|
|
|
|
linters-settings:
|
|
errcheck:
|
|
exclude: scripts/errcheck_excludes.txt
|