2019-06-23 21:40:59 +02:00
|
|
|
run:
|
|
|
|
deadline: 120s
|
|
|
|
linters:
|
|
|
|
enable:
|
|
|
|
- govet
|
|
|
|
- golint
|
|
|
|
- ineffassign
|
|
|
|
- goconst
|
|
|
|
- deadcode
|
|
|
|
- gofmt
|
|
|
|
- goimports
|
2020-07-21 04:06:21 +02:00
|
|
|
- gosec
|
2020-04-14 10:36:44 +02:00
|
|
|
- gosimple
|
|
|
|
- staticcheck
|
|
|
|
- structcheck
|
|
|
|
- typecheck
|
|
|
|
- unused
|
|
|
|
- varcheck
|
|
|
|
- bodyclose
|
|
|
|
- dogsled
|
|
|
|
- goprintffuncname
|
|
|
|
- misspell
|
|
|
|
- prealloc
|
2023-04-07 13:33:42 +02:00
|
|
|
- exportloopref
|
2020-04-14 10:36:44 +02:00
|
|
|
- stylecheck
|
|
|
|
- unconvert
|
|
|
|
- gocritic
|
2019-06-23 21:40:59 +02:00
|
|
|
disable-all: true
|
2020-04-14 10:36:44 +02:00
|
|
|
issues:
|
|
|
|
exclude-rules:
|
|
|
|
- path: _test\.go
|
|
|
|
linters:
|
|
|
|
- scopelint
|
|
|
|
- bodyclose
|
|
|
|
- unconvert
|
|
|
|
- gocritic
|
2020-07-21 04:42:05 +02:00
|
|
|
- gosec
|
2020-05-10 17:59:17 +02:00
|
|
|
# If we have tests in shared test folders, these can be less strictly linted
|
|
|
|
- path: tests/.*_tests\.go
|
|
|
|
linters:
|
|
|
|
- golint
|
|
|
|
- bodyclose
|
|
|
|
- stylecheck
|