66 lines
1.0 KiB
YAML
66 lines
1.0 KiB
YAML
run:
|
|
tests: false
|
|
# timeout for analysis, e.g. 30s, 5m, default is 1m
|
|
# timeout: 5m
|
|
|
|
linters:
|
|
enable:
|
|
- bodyclose
|
|
- deadcode
|
|
- depguard
|
|
- dogsled
|
|
- dupl
|
|
- errcheck
|
|
- goconst
|
|
- gocritic
|
|
- gofmt
|
|
- goimports
|
|
- golint
|
|
- gosec
|
|
- gosimple
|
|
- govet
|
|
- ineffassign
|
|
# - lll TODO: enable
|
|
- misspell
|
|
- maligned
|
|
- nakedret
|
|
- prealloc
|
|
- scopelint
|
|
- staticcheck
|
|
- structcheck
|
|
- stylecheck
|
|
- typecheck
|
|
- unconvert
|
|
- unparam
|
|
- unused
|
|
- varcheck
|
|
- nolintlint
|
|
- asciicheck
|
|
# - whitespace
|
|
# - wsl
|
|
|
|
issues:
|
|
exclude-rules:
|
|
- path: _test\.go
|
|
linters:
|
|
- gosec
|
|
- linters:
|
|
- lll
|
|
source: "https://"
|
|
max-same-issues: 50
|
|
|
|
linters-settings:
|
|
dogsled:
|
|
max-blank-identifiers: 3
|
|
golint:
|
|
min-confidence: 0
|
|
maligned:
|
|
suggest-new: true
|
|
misspell:
|
|
locale: US
|
|
nolintlint:
|
|
allow-unused: false
|
|
allow-leading-space: true
|
|
require-explanation: false
|
|
require-specific: false
|