-
Notifications
You must be signed in to change notification settings - Fork 9
/
.golangci.yaml
52 lines (47 loc) · 1.18 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
# References:
# - https://golangci-lint.run/usage/linters/
run:
timeout: 10m # default 1m
linters-settings:
govet:
enable-all: true
disable:
- fieldalignment # too strict
- shadow # too strict
# Non-default
cyclop:
# Top 3:
# (*SpectroClusterReconciler).reconcileOnPilot: 80
# (*SpectroClusterReconciler).reconcilePacks: 65
# clusterdeployer (*manager).Reconcile: 52
max-complexity: 80 # maximal code complexity to report; default 10
package-average: 16.0 # maximal average package complexity to report; default 0.0
gocognit:
# Top 3:
# (*SpectroClusterReconciler).reconcileOnPilot: 158
# (*SpectroClusterReconciler).reconcilePacks: 136
# clusterdeployer (*manager).Reconcile: 107
min-complexity: 158 # minimal code complexity to report; default: 30
linters:
disable-all: true
enable:
- errcheck
- gosimple
- govet
- ineffassign
- staticcheck
- typecheck
- unused
- cyclop
- gocognit
issues:
max-issues-per-linter: 0
max-same-issues: 0
exclude-rules:
- path: _test\.go
linters:
- errcheck
- gosimple
- ineffassign
- staticcheck
- unused