1
1
run :
2
2
timeout : 10m
3
3
4
- skip-files :
5
- - " zz_generated\\ ..+\\ .go$"
6
-
7
4
output :
8
5
# colored-line-number|line-number|json|tab|checkstyle|code-climate, default is "colored-line-number"
9
- format : colored-line-number
6
+ formats :
7
+ - format : colored-line-number
10
8
11
9
linters-settings :
12
10
errcheck :
@@ -18,15 +16,6 @@ linters-settings:
18
16
# default is false: such cases aren't reported by default.
19
17
check-blank : false
20
18
21
- # [deprecated] comma-separated list of pairs of the form pkg:regex
22
- # the regex is used to ignore names within pkg. (default "fmt:.*").
23
- # see https://github.com/kisielk/errcheck#the-deprecated-method for details
24
- ignore : fmt:.*,io/ioutil:^Read.*
25
-
26
- govet :
27
- # report about shadowed variables
28
- check-shadowing : false
29
-
30
19
gofmt :
31
20
# simplify code: gofmt with `-s` option, true by default
32
21
simplify : true
@@ -46,10 +35,6 @@ linters-settings:
46
35
# minimal code complexity to report, 30 by default (but we recommend 10-20)
47
36
min-complexity : 10
48
37
49
- maligned :
50
- # print struct with more effective memory layout or not, false by default
51
- suggest-new : true
52
-
53
38
dupl :
54
39
# tokens count to trigger issue, 150 by default
55
40
threshold : 100
@@ -64,13 +49,6 @@ linters-settings:
64
49
# tab width in spaces. Default to 1.
65
50
tab-width : 1
66
51
67
- unused :
68
- # treat code as a program (not a library) and report unused exported identifiers; default is false.
69
- # XXX: if you enable this setting, unused will report a lot of false-positives in text editors:
70
- # if it's called for subdir of a project it can't find funcs usages. All text editor integrations
71
- # with golangci-lint call it on a directory with the changed file.
72
- check-exported : false
73
-
74
52
unparam :
75
53
# Inspect exported functions, default is false. Set to true if no external program/library imports your code.
76
54
# XXX: if you enable this setting, unparam will report a lot of false-positives in text editors:
@@ -111,7 +89,6 @@ linters-settings:
111
89
112
90
linters :
113
91
enable :
114
- - megacheck
115
92
- govet
116
93
- gocyclo
117
94
- gocritic
@@ -141,6 +118,8 @@ linters:
141
118
142
119
143
120
issues :
121
+ exclude-files :
122
+ - " zz_generated\\ ..+\\ .go$"
144
123
# Excluding configuration per-path and per-linter
145
124
exclude-rules :
146
125
# Exclude some linters from running on tests files.
@@ -210,7 +189,7 @@ issues:
210
189
new : false
211
190
212
191
# Maximum issues count per one linter. Set to 0 to disable. Default is 50.
213
- max-per-linter : 0
192
+ max-issues- per-linter : 0
214
193
215
194
# Maximum count of issues with the same text. Set to 0 to disable. Default is 3.
216
195
max-same-issues : 0
0 commit comments