2020-09-17 16:49:46 -05:00
|
|
|
run:
|
2024-12-11 15:04:35 -08:00
|
|
|
timeout: 3m
|
2020-09-17 16:49:46 -05:00
|
|
|
|
|
|
|
|
linters:
|
|
|
|
|
disable-all: true
|
|
|
|
|
enable:
|
|
|
|
|
- errcheck
|
|
|
|
|
- gosimple
|
|
|
|
|
- govet
|
|
|
|
|
- ineffassign
|
|
|
|
|
- staticcheck
|
|
|
|
|
- typecheck
|
|
|
|
|
- gochecknoinits
|
|
|
|
|
- gofmt
|
2021-11-16 15:19:10 -08:00
|
|
|
- revive # replaces golint for now
|
2020-09-17 16:49:46 -05:00
|
|
|
- misspell
|
2021-11-16 15:19:10 -08:00
|
|
|
- exportloopref
|
2020-09-17 16:49:46 -05:00
|
|
|
- unparam
|
|
|
|
|
|
|
|
|
|
linters-settings:
|
2022-08-08 15:11:55 -07:00
|
|
|
staticcheck:
|
|
|
|
|
checks:
|
|
|
|
|
- all
|
2023-08-24 14:41:21 -07:00
|
|
|
|
|
|
|
|
issues:
|
|
|
|
|
exclude-rules:
|
|
|
|
|
# this requires renaming all unused parameters, we'd rather leave a preferred
|
|
|
|
|
# placeholder name in place when implementing an interface etc.
|
|
|
|
|
# we can revisit this later, right now it's generating a lot of new warnings
|
|
|
|
|
# after upgrading golangci-lint
|
|
|
|
|
- text: "^unused-parameter: .*"
|
|
|
|
|
linters:
|
|
|
|
|
- revive
|