mirror of
https://github.com/tendermint/tendermint.git
synced 2026-01-03 11:45:18 +00:00
*bump linter to 1.47 Co-authored-by: William Banfield <4561443+williambanfield@users.noreply.github.com>
73 lines
1.1 KiB
YAML
73 lines
1.1 KiB
YAML
linters:
|
|
enable:
|
|
- asciicheck
|
|
- bodyclose
|
|
# - deadcode
|
|
- depguard
|
|
- dogsled
|
|
- dupl
|
|
- errcheck
|
|
- exportloopref
|
|
# - funlen
|
|
# - gochecknoglobals
|
|
# - gochecknoinits
|
|
# - gocognit
|
|
- goconst
|
|
# - gocritic
|
|
# - gocyclo
|
|
# - godox
|
|
- gofmt
|
|
- goimports
|
|
- revive
|
|
- gosec
|
|
- gosimple
|
|
- govet
|
|
- ineffassign
|
|
# - interfacer
|
|
- lll
|
|
# - maligned
|
|
# - misspell
|
|
- nakedret
|
|
# - nolintlint
|
|
- prealloc
|
|
- staticcheck
|
|
# - structcheck // to be fixed by golangci-lint
|
|
- stylecheck
|
|
# - typecheck
|
|
- unconvert
|
|
# - unparam
|
|
# - unused
|
|
- varcheck
|
|
# - whitespace
|
|
# - wsl
|
|
disable:
|
|
- unused
|
|
- deadcode
|
|
- nolintlint
|
|
|
|
issues:
|
|
exclude-rules:
|
|
- path: _test\.go
|
|
linters:
|
|
- gosec
|
|
- linters:
|
|
- lll
|
|
source: "https://"
|
|
max-same-issues: 50
|
|
|
|
linters-settings:
|
|
dogsled:
|
|
max-blank-identifiers: 3
|
|
maligned:
|
|
suggest-new: true
|
|
# govet:
|
|
# check-shadowing: true
|
|
revive:
|
|
min-confidence: 0
|
|
misspell:
|
|
locale: US
|
|
ignore-words:
|
|
- behaviour
|
|
|
|
|