2019-10-19 14:50:13 +00:00
|
|
|
linters:
|
2024-05-14 19:54:08 +00:00
|
|
|
enable-all: true
|
|
|
|
disable:
|
|
|
|
- containedctx
|
|
|
|
- contextcheck
|
|
|
|
- cyclop
|
|
|
|
- depguard
|
|
|
|
- dogsled
|
|
|
|
- dupl
|
|
|
|
- err113
|
|
|
|
- exhaustive
|
|
|
|
- exhaustruct
|
|
|
|
- fatcontext
|
|
|
|
- funlen
|
|
|
|
- gochecknoglobals
|
|
|
|
- gocognit
|
|
|
|
- goconst
|
|
|
|
- gocyclo
|
|
|
|
- godox
|
|
|
|
- inamedparam
|
|
|
|
- ireturn
|
|
|
|
- lll
|
|
|
|
- mnd
|
|
|
|
- nlreturn
|
|
|
|
- noctx
|
|
|
|
- testpackage
|
|
|
|
- varnamelen
|
|
|
|
- wrapcheck
|
|
|
|
- wsl
|
|
|
|
- execinquery
|
|
|
|
- gomnd
|
2024-08-10 20:05:33 +00:00
|
|
|
- stylecheck
|
|
|
|
- maintidx
|
|
|
|
|
|
|
|
linters-settings:
|
|
|
|
gci:
|
|
|
|
sections:
|
|
|
|
- prefix(github.com/prometheus-community/windows_exporter/pkg/initiate)
|
|
|
|
- standard # Standard section: captures all standard packages.
|
|
|
|
- default # Default section: contains all imports that could not be matched to another section type.
|
|
|
|
custom-order: true
|
|
|
|
tagliatelle:
|
|
|
|
case:
|
|
|
|
use-field-name: true
|
|
|
|
rules:
|
|
|
|
# Any struct tag type can be used.
|
|
|
|
# Support string case: `camel`, `pascal`, `kebab`, `snake`, `upperSnake`, `goCamel`, `goPascal`, `goKebab`, `goSnake`, `upper`, `lower`, `header`
|
|
|
|
json: camel
|
|
|
|
yaml: snake
|
2019-10-19 14:50:13 +00:00
|
|
|
|
|
|
|
issues:
|
|
|
|
exclude:
|
|
|
|
- don't use underscores in Go names
|
2023-11-04 19:51:35 +00:00
|
|
|
- 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:
|
2021-12-24 10:19:05 +00:00
|
|
|
- revive
|
|
|
|
- text: "don't use ALL_CAPS in Go names; use CamelCase"
|
|
|
|
linters:
|
|
|
|
- revive
|