Files
windows_exporter/.golangci.yaml
Ben Reedy a49dee606b perf: pre-allocate slices
Signed-off-by: Ben Reedy <breed808@breed808.com>
2024-05-15 06:19:24 +10:00

29 lines
570 B
YAML

linters:
disable-all: true
enable:
- errcheck
- govet
- gofmt
- ineffassign
- loggercheck
- nilnil
- nilerr
- prealloc
- revive
- unconvert
- unparam
issues:
exclude:
- don't use underscores in Go names
- don't use an underscore in package name
- 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