2022-05-23 07:21:10 -07:00
|
|
|
linters:
|
|
|
|
# Disable all linters.
|
|
|
|
# Default: false
|
|
|
|
disable-all: true
|
|
|
|
# Enable specific linter
|
|
|
|
# https://golangci-lint.run/usage/linters/#enabled-by-default-linters
|
|
|
|
enable:
|
2023-05-03 15:36:01 -07:00
|
|
|
# default linters
|
2022-05-23 07:21:10 -07:00
|
|
|
- errcheck
|
|
|
|
- gosimple
|
|
|
|
- govet
|
|
|
|
- ineffassign
|
|
|
|
- staticcheck
|
|
|
|
- typecheck
|
|
|
|
- unused
|
|
|
|
|
2023-05-03 15:36:01 -07:00
|
|
|
# additional linters
|
|
|
|
- gosec
|
|
|
|
- forcetypeassert
|
2023-05-04 10:37:49 -07:00
|
|
|
# - contextcheck # disabled in CI for now because fixes to findings need additional work
|
2023-05-03 15:36:01 -07:00
|
|
|
- noctx
|
|
|
|
# - unconvert # disable because extra conversion typically don't hurt but can make code more clear
|
|
|
|
- unparam
|
|
|
|
- prealloc
|