forked from cloudfoundry/korifi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.golangci.yml
41 lines (35 loc) · 1.01 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
run:
# increase timeout for cases when tests run in parallel with linters
timeout: 20m
# which dirs to skip: they won't be analyzed;
skip-dirs:
- vendor
- pkg
modules-download-mode: mod
linters-settings:
govet:
# report about shadowed variables
check-shadowing: true
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
issues:
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