-
Notifications
You must be signed in to change notification settings - Fork 65
/
.golangci.yml
47 lines (39 loc) · 1.09 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
run:
# increase timeout for cases when tests run in parallel with linters
timeout: 20m
modules-download-mode: mod
linters-settings:
govet:
# report about shadowed variables
enable:
- shadow
linters:
# Maximum issues count per one linter. Set to 0 to disable.
max-per-linter: 0
# Maximum count of issues with the same text. Set to 0 to disable
max-same: 0
# Show only new issues
new: false
enable:
- dupl
- ginkgolinter
disable:
- staticcheck # we run this separately
issues:
# which dirs to skip: they won't be analyzed;
exclude-dirs:
- vendor
- pkg
exclude-rules:
- path: _test\.go
linters:
- dupl
# We are getting false positives comparing the cfserviceinstance and cfservicebinding reconcile loops. This may
# become unnecessary later if the implementation diverges more.
- path: service\w+_controller\.go
linters:
- dupl
# Ignore false positive duplicate linter errors comparing validating webhooks for cforg and cfapp.
- path: workloads/cf\w+_validation\.go
linters:
- dupl