mirror of
https://github.com/spf13/cobra
synced 2024-11-05 05:17:12 +00:00
652c755d37
Use golangci-lint. Repair warnings and errors resulting from linting.
48 lines
720 B
YAML
48 lines
720 B
YAML
run:
|
|
deadline: 5m
|
|
|
|
linters:
|
|
disable-all: true
|
|
enable:
|
|
#- bodyclose
|
|
- deadcode
|
|
#- depguard
|
|
#- dogsled
|
|
#- dupl
|
|
- errcheck
|
|
#- exhaustive
|
|
#- funlen
|
|
- gas
|
|
#- gochecknoinits
|
|
- goconst
|
|
#- gocritic
|
|
#- gocyclo
|
|
#- gofmt
|
|
- goimports
|
|
- golint
|
|
#- gomnd
|
|
#- goprintffuncname
|
|
#- gosec
|
|
#- gosimple
|
|
- govet
|
|
- ineffassign
|
|
- interfacer
|
|
#- lll
|
|
- maligned
|
|
- megacheck
|
|
#- misspell
|
|
#- nakedret
|
|
#- noctx
|
|
#- nolintlint
|
|
#- rowserrcheck
|
|
#- scopelint
|
|
#- staticcheck
|
|
- structcheck
|
|
#- stylecheck
|
|
#- typecheck
|
|
- unconvert
|
|
#- unparam
|
|
#- unused
|
|
- varcheck
|
|
#- whitespace
|
|
fast: false
|