2020-03-24 02:01:50 +05:30
|
|
|
linters:
|
|
|
|
enable:
|
2022-08-24 19:48:18 +02:00
|
|
|
- asasalint
|
2022-05-11 00:09:19 +02:00
|
|
|
- asciicheck
|
|
|
|
- bidichk
|
2022-05-10 17:50:04 +02:00
|
|
|
- bodyclose
|
2022-05-11 09:42:11 +02:00
|
|
|
- containedctx
|
2022-05-16 10:58:47 +02:00
|
|
|
- decorder
|
2022-05-16 08:31:41 +02:00
|
|
|
- dogsled
|
2022-05-11 00:27:59 +02:00
|
|
|
- durationcheck
|
2020-03-24 02:01:50 +05:30
|
|
|
- errcheck
|
2022-05-16 12:51:31 +02:00
|
|
|
- errname
|
2022-05-11 01:10:25 +02:00
|
|
|
- exportloopref
|
2022-05-17 07:56:48 +02:00
|
|
|
- gci
|
2022-05-11 10:24:46 +02:00
|
|
|
- gochecknoinits
|
2022-05-17 08:19:03 +02:00
|
|
|
- gofmt
|
|
|
|
- gofumpt
|
2022-05-18 06:24:08 +02:00
|
|
|
- goimports
|
2022-05-12 12:12:57 +02:00
|
|
|
- goprintffuncname
|
2022-05-10 17:06:48 +02:00
|
|
|
- gosec
|
2020-03-24 02:01:50 +05:30
|
|
|
- gosimple
|
2022-05-10 17:50:04 +02:00
|
|
|
- govet
|
2022-05-17 11:17:06 +02:00
|
|
|
- grouper
|
2022-05-11 13:32:54 +02:00
|
|
|
- importas
|
2020-03-24 02:01:50 +05:30
|
|
|
- ineffassign
|
2022-05-17 09:19:25 +02:00
|
|
|
- makezero
|
2022-05-16 15:38:57 +02:00
|
|
|
- misspell
|
2022-05-11 14:04:40 +02:00
|
|
|
- noctx
|
2022-05-17 11:57:31 +02:00
|
|
|
- nolintlint
|
2022-05-23 16:14:52 +02:00
|
|
|
- nosprintfhostport
|
2022-05-18 06:49:19 +02:00
|
|
|
- paralleltest
|
2022-05-10 17:50:04 +02:00
|
|
|
- staticcheck
|
2022-05-11 00:48:45 +02:00
|
|
|
- tenv
|
|
|
|
- thelper
|
|
|
|
- tparallel
|
2022-05-10 17:50:04 +02:00
|
|
|
- typecheck
|
2022-05-10 21:28:45 +02:00
|
|
|
- unconvert
|
2022-05-10 17:50:04 +02:00
|
|
|
- unused
|
2022-05-12 13:03:26 +02:00
|
|
|
- wastedassign
|
2022-05-10 19:01:29 +02:00
|
|
|
- whitespace
|
2020-03-24 02:01:50 +05:30
|
|
|
|
|
|
|
run:
|
2023-07-06 15:39:52 +02:00
|
|
|
timeout: 15m
|
2020-03-24 02:01:50 +05:30
|
|
|
skip-files:
|
2022-11-17 17:01:30 +01:00
|
|
|
- ".+\\.generated.go"
|
2020-03-24 02:01:50 +05:30
|
|
|
- ".+_test.go"
|
2022-05-10 17:50:04 +02:00
|
|
|
- ".+_test_.+.go"
|
2022-05-17 13:12:43 +02:00
|
|
|
|
|
|
|
linters-settings:
|
|
|
|
importas:
|
|
|
|
alias:
|
|
|
|
- pkg: github.com/kyverno/kyverno/api/(\w+)/(v[\w\d]+)
|
|
|
|
alias: $1$2
|
2022-05-17 16:14:31 +02: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-08-31 14:03:47 +08:00
|
|
|
- pkg: github.com/kyverno/kyverno/pkg/clients/dclient
|
2022-05-17 16:40:51 +02:00
|
|
|
alias: dclient
|
2022-05-17 17:26:32 +02:00
|
|
|
- pkg: github.com/kyverno/kyverno/pkg/client/clientset/versioned
|
|
|
|
alias: kyvernoclient
|
|
|
|
- pkg: k8s.io/client-go/kubernetes
|
|
|
|
alias: kubernetes
|
2022-05-17 17:51:03 +02: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 06:02:31 +02: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
|