laconicd/.golangci.yml

66 lines
1.0 KiB
YAML
Raw Normal View History

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