mirror of
https://github.com/kyverno/kyverno.git
synced 2024-12-14 11:57:48 +00:00
666bcb3c15
* chore: make kyverno api import aliases consistent Signed-off-by: Charles-Edouard Brétéché <charled.breteche@gmail.com> * chore: make apimachinery api import aliases consistent Signed-off-by: Charles-Edouard Brétéché <charled.breteche@gmail.com>
55 lines
934 B
YAML
55 lines
934 B
YAML
linters:
|
|
enable:
|
|
- asciicheck
|
|
- bidichk
|
|
- bodyclose
|
|
- containedctx
|
|
- deadcode
|
|
- decorder
|
|
- dogsled
|
|
- durationcheck
|
|
- errcheck
|
|
- errname
|
|
- exportloopref
|
|
- gci
|
|
- gochecknoinits
|
|
- gofmt
|
|
- gofumpt
|
|
- goprintffuncname
|
|
- gosec
|
|
- gosimple
|
|
- govet
|
|
- grouper
|
|
- importas
|
|
- ineffassign
|
|
- makezero
|
|
- misspell
|
|
- noctx
|
|
- nolintlint
|
|
- staticcheck
|
|
- structcheck
|
|
- tenv
|
|
- thelper
|
|
- tparallel
|
|
- typecheck
|
|
- unconvert
|
|
- unused
|
|
- varcheck
|
|
- wastedassign
|
|
- whitespace
|
|
|
|
run:
|
|
timeout: 5m
|
|
skip-files:
|
|
- ".+_test.go"
|
|
- ".+_test_.+.go"
|
|
|
|
linters-settings:
|
|
importas:
|
|
alias:
|
|
- pkg: github.com/kyverno/kyverno/api/(\w+)/(v[\w\d]+)
|
|
alias: $1$2
|
|
- pkg: k8s.io/apimachinery/pkg/apis/(\w+)/(v[\w\d]+)
|
|
alias: $1$2
|
|
- pkg: k8s.io/api/(\w+)/(v[\w\d]+)
|
|
alias: $1$2
|