31 lines
779 B
YAML
31 lines
779 B
YAML
linters:
|
|
# Disable all linters.
|
|
# Default: false
|
|
disable-all: true
|
|
# Enable specific linter
|
|
# https://golangci-lint.run/usage/linters/#enabled-by-default-linters
|
|
enable:
|
|
# default linters
|
|
- errcheck
|
|
- gosimple
|
|
- govet
|
|
- ineffassign
|
|
- staticcheck
|
|
- typecheck
|
|
- unused
|
|
|
|
# additional linters
|
|
- gosec
|
|
- forcetypeassert
|
|
# - contextcheck # disabled in CI for now because fixes to findings need additional work
|
|
- noctx
|
|
# - unconvert # disable because extra conversion typically don't hurt but can make code more clear
|
|
- unparam
|
|
- prealloc
|
|
issues:
|
|
exclude-rules:
|
|
- path: pkg/supervisor/supervisor_testhelpers.go
|
|
text: "^func.*supervisor.*(waitSettle|waitSettleError).*$"
|
|
linters:
|
|
- unused
|