2019-06-23 21:40:59 +02:00
|
|
|
run:
|
|
|
|
deadline: 120s
|
|
|
|
linters:
|
|
|
|
enable:
|
|
|
|
- govet
|
|
|
|
- ineffassign
|
|
|
|
- goconst
|
|
|
|
- gofmt
|
|
|
|
- goimports
|
2020-07-21 04:06:21 +02:00
|
|
|
- gosec
|
2020-04-14 10:36:44 +02:00
|
|
|
- gosimple
|
|
|
|
- staticcheck
|
|
|
|
- typecheck
|
|
|
|
- unused
|
|
|
|
- bodyclose
|
|
|
|
- dogsled
|
|
|
|
- goprintffuncname
|
|
|
|
- misspell
|
|
|
|
- prealloc
|
2024-09-25 14:07:11 +02:00
|
|
|
- copyloopvar
|
2020-04-14 10:36:44 +02:00
|
|
|
- stylecheck
|
|
|
|
- unconvert
|
|
|
|
- gocritic
|
2023-10-24 16:31:32 +02:00
|
|
|
- revive
|
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
|
2024-01-22 15:39:53 +02:00
|
|
|
- goconst
|
2024-03-04 02:42:00 +02:00
|
|
|
- revive
|
2024-01-22 15:39:53 +02:00
|
|
|
- path: _test\.go
|
|
|
|
linters:
|
|
|
|
- revive
|
|
|
|
text: "dot-imports:"
|
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:
|
2023-10-24 16:31:32 +02:00
|
|
|
- revive
|
2020-05-10 17:59:17 +02:00
|
|
|
- bodyclose
|
|
|
|
- stylecheck
|