forked from kyverno/kyverno
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.golangci.yml
71 lines (69 loc) · 1.61 KB
/
.golangci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
linters:
enable:
- asasalint
- asciicheck
- bidichk
- bodyclose
- containedctx
- decorder
- dogsled
- durationcheck
- errcheck
- errname
- exportloopref
- gci
- gochecknoinits
- gofmt
- gofumpt
- goimports
- goprintffuncname
- gosec
- gosimple
- govet
- grouper
- importas
- ineffassign
- makezero
- misspell
- noctx
- nolintlint
- nosprintfhostport
- paralleltest
- staticcheck
- tenv
- thelper
- tparallel
- typecheck
- unconvert
- unused
- wastedassign
- whitespace
run:
timeout: 15m
skip-files:
- ".+\\.generated.go"
- ".+_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
- pkg: github.com/kyverno/kyverno/pkg/clients/dclient
alias: dclient
- pkg: github.com/kyverno/kyverno/pkg/client/clientset/versioned
alias: kyvernoclient
- pkg: k8s.io/client-go/kubernetes
alias: kubernetes
- 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
- 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