-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.golangci.yml
116 lines (112 loc) · 2.39 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
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
108
109
110
111
112
113
114
115
116
run:
timeout: 5m
linters:
enable:
- asciicheck
- bidichk
- bodyclose
- containedctx
- contextcheck
- copyloopvar
- durationcheck
- errcheck
- errname
- errorlint
- exhaustive
- forcetypeassert
- funlen
- gochecknoglobals
- gocognit
- goconst
- gocritic
- gocyclo
- godot
- gofmt
- goimports
- goprintffuncname
- gosec
- gosimple
- govet
- ineffassign
- ireturn
- maintidx
- makezero
- misspell
- mnd
- nakedret
- nestif
- nilerr
- nilnil
- nlreturn
- noctx
- nolintlint
- paralleltest
- predeclared
- staticcheck
- stylecheck
- tagliatelle
- tenv
- thelper
- tparallel
- typecheck
- unconvert
- unused
- whitespace
- wrapcheck
linters-settings:
errcheck:
check-blank: true
check-type-assertions: true
funlen:
lines: 80
goconst:
min-occurrences: 3
gocognit:
min-complexity: 25
gocyclo:
min-complexity: 25
makezero:
always: true
nakedret:
max-func-lines: 0
nestif:
min-complexity: 6
nolintlint:
require-specific: true
require-explanation: true
allow-leading-space: false
whitespace:
multi-if: true
multi-func: true
issues:
max-same-issues: 0 # unlimited
max-issues-per-linter: 0 # unlimited
exclude-rules:
- path: pkg/aws/ami.go
linters:
- wrapcheck # errors are wrapped in other functions
- path: pkg/updater/updater.go
linters:
- wrapcheck # errors are wrapped in other functions
- gocognit # the main function can have bigger complexity
- nestif # the main function can have bigger complexity
- funlen # the main function can have bigger complexity
- gocyclo # the main function can have bigger complexity
- path: pkg/aws/nodegroups.go
linters:
- wrapcheck # errors are wrapped in other functions
- path: pkg/aws/clusters.go
linters:
- wrapcheck # errors are wrapped in other functions
- path: pkg/aws/regions.go
linters:
- wrapcheck # errors are wrapped in other functions
- path: pkg/aws/updater.go
linters:
- nestif
- path: pkg/aws/ami_test.go
linters:
- funlen # test function can be long
- path: pkg/aws/nodegroups_test.go
linters:
- funlen # test function can be long