-
Notifications
You must be signed in to change notification settings - Fork 8
/
.golangci.yaml
43 lines (41 loc) · 1.24 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
run:
concurrency: 4
deadline: 10m
linters:
enable:
- gocritic
- gosec
- revive
issues:
exclude-use-default: false
exclude:
# - var-naming # ((var|const|struct field|func) .* should be .*
- dot-imports # should not use dot imports
- "exported: (type|func) name will be used as .* by other packages, and that stutters;"
- indent-error-flow # if block ends with a return statement, so drop this else and outdent its block
- package-comments
exclude-rules:
- path: 'pkg/provider/gardener/ruleset/disak8sstig/rules/'
linters:
- revive
text: "exported: exported"
- path: 'pkg/provider/managedk8s/ruleset/disak8sstig/rules/'
linters:
- revive
text: "exported: exported"
- path: 'pkg/provider/managedk8s/ruleset/securityhardenedk8s/rules/'
linters:
- revive
text: "exported: exported"
- path: 'pkg/provider/virtualgarden/ruleset/disak8sstig/rules/'
linters:
- revive
text: "exported: exported"
- path: 'pkg/provider/garden/ruleset/securityhardenedshoot/rules/'
linters:
- revive
text: "exported: exported"
- path: 'pkg/shared/ruleset/disak8sstig/rules/'
linters:
- revive
text: "exported: exported"