2020-03-23 20:31:50 +00:00
|
|
|
linters:
|
|
|
|
enable:
|
2022-05-10 22:09:19 +00:00
|
|
|
- asciicheck
|
|
|
|
- bidichk
|
2022-05-10 15:50:04 +00:00
|
|
|
- bodyclose
|
2022-05-11 07:42:11 +00:00
|
|
|
- containedctx
|
2022-05-10 15:06:48 +00:00
|
|
|
- deadcode
|
2022-05-16 08:58:47 +00:00
|
|
|
- decorder
|
2022-05-16 06:31:41 +00:00
|
|
|
- dogsled
|
2022-05-10 22:27:59 +00:00
|
|
|
- durationcheck
|
2020-03-23 20:31:50 +00:00
|
|
|
- errcheck
|
2022-05-16 10:51:31 +00:00
|
|
|
- errname
|
2022-05-10 23:10:25 +00:00
|
|
|
- exportloopref
|
2022-05-17 05:56:48 +00:00
|
|
|
- gci
|
2022-05-11 08:24:46 +00:00
|
|
|
- gochecknoinits
|
2022-05-17 06:19:03 +00:00
|
|
|
- gofmt
|
|
|
|
- gofumpt
|
2022-05-18 04:24:08 +00:00
|
|
|
- goimports
|
2022-05-12 10:12:57 +00:00
|
|
|
- goprintffuncname
|
2022-05-10 15:06:48 +00:00
|
|
|
- gosec
|
2020-03-23 20:31:50 +00:00
|
|
|
- gosimple
|
2022-05-10 15:50:04 +00:00
|
|
|
- govet
|
2022-05-17 09:17:06 +00:00
|
|
|
- grouper
|
2022-05-17 18:55:13 +00:00
|
|
|
- ifshort
|
2022-05-11 11:32:54 +00:00
|
|
|
- importas
|
2020-03-23 20:31:50 +00:00
|
|
|
- ineffassign
|
2022-05-17 07:19:25 +00:00
|
|
|
- makezero
|
2022-05-16 13:38:57 +00:00
|
|
|
- misspell
|
2022-05-11 12:04:40 +00:00
|
|
|
- noctx
|
2022-05-17 09:57:31 +00:00
|
|
|
- nolintlint
|
2022-05-10 15:50:04 +00:00
|
|
|
- staticcheck
|
2020-03-23 20:31:50 +00:00
|
|
|
- structcheck
|
2022-05-10 22:48:45 +00:00
|
|
|
- tenv
|
|
|
|
- thelper
|
|
|
|
- tparallel
|
2022-05-10 15:50:04 +00:00
|
|
|
- typecheck
|
2022-05-10 19:28:45 +00:00
|
|
|
- unconvert
|
2022-05-10 15:50:04 +00:00
|
|
|
- unused
|
|
|
|
- varcheck
|
2022-05-12 11:03:26 +00:00
|
|
|
- wastedassign
|
2022-05-10 17:01:29 +00:00
|
|
|
- whitespace
|
2020-03-23 20:31:50 +00:00
|
|
|
|
|
|
|
run:
|
2022-05-10 14:38:09 +00:00
|
|
|
timeout: 5m
|
2020-03-23 20:31:50 +00:00
|
|
|
skip-files:
|
|
|
|
- ".+_test.go"
|
2022-05-10 15:50:04 +00:00
|
|
|
- ".+_test_.+.go"
|
2022-05-17 11:12:43 +00:00
|
|
|
|
|
|
|
linters-settings:
|
|
|
|
importas:
|
|
|
|
alias:
|
|
|
|
- pkg: github.com/kyverno/kyverno/api/(\w+)/(v[\w\d]+)
|
|
|
|
alias: $1$2
|
2022-05-17 14:14:31 +00:00
|
|
|
- pkg: k8s.io/apimachinery/pkg/apis/(\w+)/(v[\w\d]+)
|
|
|
|
alias: $1$2
|
|
|
|
- pkg: k8s.io/api/(\w+)/(v[\w\d]+)
|
|
|
|
alias: $1$2
|
2022-05-17 14:40:51 +00:00
|
|
|
- pkg: github.com/kyverno/kyverno/pkg/dclient
|
|
|
|
alias: dclient
|
2022-05-17 15:26:32 +00:00
|
|
|
- pkg: github.com/kyverno/kyverno/pkg/client/clientset/versioned
|
|
|
|
alias: kyvernoclient
|
|
|
|
- pkg: k8s.io/client-go/kubernetes
|
|
|
|
alias: kubernetes
|
2022-05-17 15:51:03 +00:00
|
|
|
- pkg: k8s.io/client-go/informers/(\w+)/(v[\w\d]+)
|
|
|
|
alias: ${1}${2}informers
|
|
|
|
- pkg: k8s.io/client-go/listers/(\w+)/(v[\w\d]+)
|
|
|
|
alias: ${1}${2}listers
|
2022-05-18 04:02:31 +00:00
|
|
|
- pkg: github.com/kyverno/kyverno/pkg/client/informers/externalversions/(\w+)/(v[\w\d]+)
|
|
|
|
alias: ${1}${2}informers
|
|
|
|
- pkg: github.com/kyverno/kyverno/pkg/client/listers/(\w+)/(v[\w\d]+)
|
|
|
|
alias: ${1}${2}listers
|