windows_exporter/.golangci.yaml

30 lines
585 B
YAML
Raw Normal View History

2019-10-19 14:50:13 +00:00
linters:
disable-all: true
enable:
- errcheck
- govet
- gofmt
- ineffassign
- loggercheck
- nilnil
- nilerr
- perfsprint
- prealloc
- revive
- unconvert
- unparam
2019-10-19 14:50:13 +00:00
issues:
exclude:
- don't use underscores in Go names
- don't use an underscore in package name
2019-10-19 14:50:13 +00:00
- exported type .+ should have comment or be unexported
exclude-rules:
- # Golint has many capitalisation complaints on WMI class names
text: "`?\\w+`? should be `?\\w+`?"
linters:
- revive
- text: "don't use ALL_CAPS in Go names; use CamelCase"
linters:
- revive