-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.golangci.yaml
107 lines (105 loc) · 1.99 KB
/
.golangci.yaml
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
---
run:
timeout: 5m
skip-dirs:
- client
linters:
disable:
- typecheck
- deadcode
- unused
- varcheck
# Disabled as of 27th July 2022 incompatible with Go 1.18
- bodyclose
- nilerr
- noctx
- rowserrcheck
- sqlclosecheck
- structcheck
- tparallel
- wastedassign
- depguard
enable:
- asciicheck
- dogsled
- durationcheck
- errorlint
- exhaustive
- exportloopref
- forbidigo
- forcetypeassert
- goconst
- gocritic
- gocyclo
- godot
- gofmt
- gofumpt
- goheader
- goimports
- gomnd
- gomoddirectives
- gomodguard
- goprintffuncname
- gosec
- ifshort
- importas
- makezero
- misspell
- nakedret
- nestif
- nolintlint
- prealloc
- predeclared
- stylecheck
- thelper
- unconvert
- unparam
- whitespace
issues:
exclude-rules:
- path: _test\.go
linters:
- dupl
- forbidigo
- gosec
- goconst
- path: _test\.go
text: "SA1019"
linters:
- staticcheck
- path: test_utils.go
linters:
- forbidigo
- path: pkg/vault/matchers
linters:
- dupl
- path: pkg/vault/transit/encrypt.go
linters:
- dupl
- path: pkg/vault/transit/sign.go
linters:
- dupl
- path: pkg/apis/heist.youniqx.com/v1alpha1/vaulttransitkey_webhook.go
linters:
- dupl
- path: pkg/apis/heist.youniqx.com/v1alpha1/vaulttransitengine_webhook.go
linters:
- dupl
- path: pkg/testhelper
text: "SA1019"
linters:
- staticcheck
- path: pkg/controllers/vaultbinding
text: "SA1019"
linters:
- staticcheck
- path: pkg/controllers/e2e_test/test_commons.go
text: "ST1001"
linters:
- stylecheck
- path: pkg/controllers/e2e_test/test_commons.go
linters:
- gomnd
- path: pkg/testhelper/env.go
linters:
- forbidigo