2020-04-28 06:50:14 -07:00
|
|
|
run:
|
|
|
|
tests: false
|
2021-06-08 09:27:39 -07:00
|
|
|
# timeout for analysis, e.g. 30s, 5m, default is 1m
|
|
|
|
timeout: 5m
|
2019-08-19 09:06:27 -07:00
|
|
|
|
2019-03-19 09:52:43 -07:00
|
|
|
linters:
|
2020-03-01 07:38:57 -08:00
|
|
|
disable-all: true
|
2019-10-14 08:43:19 -07:00
|
|
|
enable:
|
|
|
|
- bodyclose
|
|
|
|
- deadcode
|
|
|
|
- depguard
|
|
|
|
- dogsled
|
2020-03-20 12:24:18 -07:00
|
|
|
# - errcheck
|
2021-11-16 11:24:38 -08:00
|
|
|
- exportloopref
|
2019-10-14 08:43:19 -07:00
|
|
|
- goconst
|
|
|
|
- gocritic
|
|
|
|
- gofmt
|
|
|
|
- goimports
|
|
|
|
- gosec
|
|
|
|
- gosimple
|
|
|
|
- govet
|
|
|
|
- ineffassign
|
|
|
|
- misspell
|
|
|
|
- nakedret
|
2021-11-16 11:24:38 -08:00
|
|
|
- nolintlint
|
2019-10-14 08:43:19 -07:00
|
|
|
- prealloc
|
2021-09-14 02:05:30 -07:00
|
|
|
- revive
|
2019-10-14 08:43:19 -07:00
|
|
|
- staticcheck
|
|
|
|
- structcheck
|
2019-10-17 06:47:35 -07:00
|
|
|
- stylecheck
|
2019-10-14 08:43:19 -07:00
|
|
|
- typecheck
|
|
|
|
- unconvert
|
2020-05-02 12:26:59 -07:00
|
|
|
- unparam
|
2021-11-16 11:24:38 -08:00
|
|
|
- unused
|
2020-05-07 02:40:49 -07:00
|
|
|
# - wsl
|
2019-09-17 09:13:26 -07:00
|
|
|
|
|
|
|
issues:
|
|
|
|
exclude-rules:
|
|
|
|
- text: "Use of weak random number generator"
|
|
|
|
linters:
|
|
|
|
- gosec
|
|
|
|
- text: "comment on exported var"
|
|
|
|
linters:
|
|
|
|
- golint
|
|
|
|
- text: "don't use an underscore in package name"
|
|
|
|
linters:
|
|
|
|
- golint
|
2019-09-30 16:06:07 -07:00
|
|
|
- text: "ST1003:"
|
|
|
|
linters:
|
|
|
|
- stylecheck
|
2020-02-06 11:21:02 -08:00
|
|
|
# FIXME: Disabled until golangci-lint updates stylecheck with this fix:
|
2020-02-05 11:32:45 -08:00
|
|
|
# https://github.com/dominikh/go-tools/issues/389
|
|
|
|
- text: "ST1016:"
|
|
|
|
linters:
|
|
|
|
- stylecheck
|
2021-07-05 07:55:51 -07:00
|
|
|
- path: "migrations"
|
2021-03-25 07:53:22 -07:00
|
|
|
text: "SA1019:"
|
|
|
|
linters:
|
|
|
|
- staticcheck
|
|
|
|
|
2020-05-02 12:26:59 -07:00
|
|
|
max-issues-per-linter: 10000
|
|
|
|
max-same-issues: 10000
|
2019-09-30 16:06:07 -07:00
|
|
|
|
|
|
|
linters-settings:
|
|
|
|
dogsled:
|
|
|
|
max-blank-identifiers: 3
|
2019-10-14 08:43:19 -07:00
|
|
|
maligned:
|
|
|
|
# print struct with more effective memory layout or not, false by default
|
|
|
|
suggest-new: true
|
2020-05-02 12:26:59 -07:00
|
|
|
nolintlint:
|
|
|
|
allow-unused: false
|
|
|
|
allow-leading-space: true
|
|
|
|
require-explanation: false
|
|
|
|
require-specific: false
|