2020-06-26 22:26:55 +00:00
|
|
|
run:
|
|
|
|
tests: false
|
2021-08-26 15:45:45 +00:00
|
|
|
# timeout for analysis, e.g. 30s, 5m, default is 1m
|
|
|
|
# timeout: 5m
|
2019-11-01 15:26:53 +00:00
|
|
|
|
|
|
|
linters:
|
|
|
|
enable:
|
2020-01-07 20:56:49 +00:00
|
|
|
- bodyclose
|
|
|
|
- deadcode
|
|
|
|
- depguard
|
|
|
|
- dogsled
|
2021-08-26 15:45:45 +00:00
|
|
|
- dupl
|
2020-01-07 20:56:49 +00:00
|
|
|
- errcheck
|
|
|
|
- goconst
|
2020-03-16 22:53:24 +00:00
|
|
|
- gocritic
|
2019-11-01 15:26:53 +00:00
|
|
|
- gofmt
|
|
|
|
- goimports
|
2020-01-07 20:56:49 +00:00
|
|
|
- golint
|
|
|
|
- gosec
|
|
|
|
- gosimple
|
|
|
|
- govet
|
|
|
|
- ineffassign
|
2021-08-26 15:45:45 +00:00
|
|
|
# - lll TODO: enable
|
2020-01-07 20:56:49 +00:00
|
|
|
- misspell
|
2021-08-26 15:45:45 +00:00
|
|
|
- maligned
|
2020-03-16 22:53:24 +00:00
|
|
|
- nakedret
|
|
|
|
- prealloc
|
2020-01-07 20:56:49 +00:00
|
|
|
- scopelint
|
|
|
|
- staticcheck
|
|
|
|
- structcheck
|
|
|
|
- stylecheck
|
|
|
|
- typecheck
|
|
|
|
- unconvert
|
2020-06-26 22:26:55 +00:00
|
|
|
- unparam
|
2021-08-26 15:45:45 +00:00
|
|
|
- unused
|
|
|
|
- varcheck
|
|
|
|
- nolintlint
|
|
|
|
- asciicheck
|
|
|
|
# - whitespace
|
2020-11-24 15:43:08 +00:00
|
|
|
# - wsl
|
2019-11-01 15:26:53 +00:00
|
|
|
|
|
|
|
issues:
|
|
|
|
exclude-rules:
|
2021-08-26 15:45:45 +00:00
|
|
|
- path: _test\.go
|
2020-03-16 22:53:24 +00:00
|
|
|
linters:
|
|
|
|
- gosec
|
2021-08-26 15:45:45 +00:00
|
|
|
- linters:
|
|
|
|
- lll
|
|
|
|
source: "https://"
|
|
|
|
max-same-issues: 50
|
2020-06-26 22:26:55 +00:00
|
|
|
|
2020-03-16 22:53:24 +00:00
|
|
|
linters-settings:
|
|
|
|
dogsled:
|
|
|
|
max-blank-identifiers: 3
|
2021-08-26 15:45:45 +00:00
|
|
|
golint:
|
|
|
|
min-confidence: 0
|
2020-03-16 22:53:24 +00:00
|
|
|
maligned:
|
|
|
|
suggest-new: true
|
2021-08-26 15:45:45 +00:00
|
|
|
misspell:
|
|
|
|
locale: US
|
2020-11-24 15:43:08 +00:00
|
|
|
nolintlint:
|
|
|
|
allow-unused: false
|
|
|
|
allow-leading-space: true
|
|
|
|
require-explanation: false
|
|
|
|
require-specific: false
|