2019-05-27 13:51:49 +00:00
|
|
|
run:
|
|
|
|
deadline: 10m
|
|
|
|
|
|
|
|
linters:
|
2020-06-09 11:00:58 +00:00
|
|
|
disable-all: true
|
2019-05-27 13:51:49 +00:00
|
|
|
enable:
|
2021-03-20 09:35:13 +00:00
|
|
|
- deadcode
|
2019-05-27 13:51:49 +00:00
|
|
|
- errcheck
|
2021-03-20 09:35:13 +00:00
|
|
|
- gosimple
|
|
|
|
- govet
|
|
|
|
- ineffassign
|
|
|
|
- staticcheck
|
|
|
|
- structcheck
|
|
|
|
- typecheck
|
|
|
|
- unused
|
|
|
|
- varcheck
|
2019-05-27 13:51:49 +00:00
|
|
|
- goconst
|
|
|
|
- gofmt
|
2020-06-09 11:00:58 +00:00
|
|
|
- golint
|
2019-05-27 13:51:49 +00:00
|
|
|
- interfacer
|
2021-03-20 09:35:13 +00:00
|
|
|
- stylecheck
|
|
|
|
- goerr113
|
|
|
|
- unconvert
|
|
|
|
- scopelint
|
|
|
|
- nakedret
|
|
|
|
- prealloc
|
|
|
|
- gosec
|
|
|
|
- misspell
|
2019-05-27 13:51:49 +00:00
|
|
|
|
|
|
|
linters-settings:
|
2021-03-20 09:35:13 +00:00
|
|
|
govet:
|
|
|
|
check-shadowing: true
|
|
|
|
enable-all: true
|
2019-05-27 13:51:49 +00:00
|
|
|
goconst:
|
|
|
|
min-len: 2
|
|
|
|
min-occurrences: 2
|
|
|
|
gofmt:
|
2020-06-09 11:00:58 +00:00
|
|
|
auto-fix: false
|
|
|
|
|
|
|
|
issues:
|
2021-03-20 09:35:13 +00:00
|
|
|
exclude:
|
|
|
|
- composites
|
|
|
|
- G108 # gosec: Profiling endpoint is automatically exposed on /debug/pprof
|
2020-06-09 11:00:58 +00:00
|
|
|
exclude-rules:
|
|
|
|
- linters:
|
|
|
|
- golint
|
|
|
|
text: "should be"
|
2021-03-20 09:35:13 +00:00
|
|
|
- linters:
|
|
|
|
- goerr113
|
|
|
|
text: "do not define dynamic errors"
|
|
|
|
- linters:
|
|
|
|
- stylecheck
|
|
|
|
text: "(should be|should have name of the form)"
|
|
|
|
# Exclude some linters from running on tests files.
|
|
|
|
- path: _test\.go
|
|
|
|
linters:
|
|
|
|
- gosec
|
|
|
|
- unused
|
|
|
|
- deadcode
|