mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-11 17:12:51 +00:00
Merge pull request #5105 from koba1t/chore/use_enable-all_option_for_golangci-lint
use enable-all on golangci-lint
This commit is contained in:
118
.golangci.yml
118
.golangci.yml
@@ -6,96 +6,34 @@ run:
|
|||||||
go: '1.19'
|
go: '1.19'
|
||||||
|
|
||||||
linters:
|
linters:
|
||||||
# please, do not use `enable-all`: it's deprecated and will be removed soon.
|
enable-all: true
|
||||||
# inverted configuration with `enable-all` and `disable` is not scalable during updates of golangci-lint
|
disable:
|
||||||
disable-all: true
|
- cyclop
|
||||||
enable:
|
- exhaustivestruct
|
||||||
- asciicheck
|
- forbidigo
|
||||||
- bidichk
|
- funlen
|
||||||
- bodyclose
|
- gci
|
||||||
- contextcheck
|
- gocognit
|
||||||
# - cyclop
|
- godot
|
||||||
- depguard
|
- godox
|
||||||
- dogsled
|
- goerr113
|
||||||
- dupl
|
- gofumpt
|
||||||
- dupword
|
- ifshort # too many false positives
|
||||||
- durationcheck
|
- ireturn
|
||||||
- errcheck
|
- nilnil
|
||||||
- errname
|
- nlreturn
|
||||||
- errorlint
|
- noctx
|
||||||
- exhaustive
|
- paralleltest
|
||||||
# - exhaustivestruct
|
- stylecheck
|
||||||
- exportloopref
|
- varnamelen
|
||||||
# - forbidigo
|
- wsl
|
||||||
- forcetypeassert
|
- exhaustruct
|
||||||
# - funlen
|
- deadcode
|
||||||
# - gci
|
- scopelint
|
||||||
- gochecknoglobals
|
- nonamedreturns
|
||||||
- gochecknoinits
|
- golint
|
||||||
# - gocognit
|
- maintidx
|
||||||
- goconst
|
- nosnakecase
|
||||||
- gocritic
|
|
||||||
- gocyclo
|
|
||||||
# - godot
|
|
||||||
# - godox
|
|
||||||
# - goerr113
|
|
||||||
- gofmt
|
|
||||||
# - gofumpt
|
|
||||||
- goheader
|
|
||||||
- goimports
|
|
||||||
- gomnd
|
|
||||||
- gomoddirectives
|
|
||||||
- gomodguard
|
|
||||||
- goprintffuncname
|
|
||||||
- gosec
|
|
||||||
- gosimple
|
|
||||||
- govet
|
|
||||||
# - ifshort # too many false positives
|
|
||||||
- importas
|
|
||||||
- ineffassign
|
|
||||||
# - ireturn
|
|
||||||
- lll
|
|
||||||
- makezero
|
|
||||||
- misspell
|
|
||||||
- nakedret
|
|
||||||
- nestif
|
|
||||||
- nilerr
|
|
||||||
# - nilnil
|
|
||||||
# - nlreturn
|
|
||||||
# - noctx
|
|
||||||
- nolintlint
|
|
||||||
# - paralleltest
|
|
||||||
- prealloc
|
|
||||||
- predeclared
|
|
||||||
- promlinter
|
|
||||||
- revive
|
|
||||||
- rowserrcheck
|
|
||||||
- sqlclosecheck
|
|
||||||
- staticcheck
|
|
||||||
# - stylecheck
|
|
||||||
- tagliatelle
|
|
||||||
- tenv
|
|
||||||
- testpackage
|
|
||||||
- testableexamples
|
|
||||||
- thelper
|
|
||||||
- tparallel
|
|
||||||
- typecheck
|
|
||||||
- unconvert
|
|
||||||
- unparam
|
|
||||||
- unused
|
|
||||||
# - varnamelen
|
|
||||||
- wastedassign
|
|
||||||
- whitespace
|
|
||||||
- wrapcheck
|
|
||||||
# - wsl
|
|
||||||
- asasalint
|
|
||||||
- usestdlibvars
|
|
||||||
- interfacebloat
|
|
||||||
- loggercheck
|
|
||||||
- reassign
|
|
||||||
- ginkgolinter
|
|
||||||
- gocheckcompilerdirectives
|
|
||||||
- musttag
|
|
||||||
|
|
||||||
linters-settings:
|
linters-settings:
|
||||||
dupl:
|
dupl:
|
||||||
|
|||||||
Reference in New Issue
Block a user