3
3
tests : false
4
4
5
5
output :
6
- format : tab
6
+ formats :
7
+ - format : tab
7
8
8
9
linters-settings :
9
- govet :
10
- # report about shadowed variables
11
- check-shadowing : true
10
+ # govet:
11
+ # # report about shadowed variables
12
+ # check-shadowing: true
12
13
13
- golint :
14
- # minimal confidence for issues, default is 0.8
15
- min-confidence : 0.8
14
+ # golint:
15
+ # # minimal confidence for issues, default is 0.8
16
+ # min-confidence: 0.8
16
17
17
18
gofmt :
18
19
# simplify code: gofmt with `-s` option, true by default
@@ -27,9 +28,9 @@ linters-settings:
27
28
# minimal code complexity to report, 30 by default (but we recommend 10-20)
28
29
min-complexity : 10
29
30
30
- maligned :
31
- # print struct with more effective memory layout or not, false by default
32
- suggest-new : true
31
+ # maligned:
32
+ # # print struct with more effective memory layout or not, false by default
33
+ # suggest-new: true
33
34
34
35
dupl :
35
36
# tokens count to trigger issue, 150 by default
@@ -50,7 +51,7 @@ linters-settings:
50
51
# XXX: if you enable this setting, unused will report a lot of false-positives in text editors:
51
52
# if it's called for subdir of a project it can't find funcs usages. All text editor integrations
52
53
# with golangci-lint call it on a directory with the changed file.
53
- check- exported : false
54
+ exported-fields-are-used : false
54
55
55
56
unparam :
56
57
# Inspect exported functions, default is false. Set to true if no external program/library imports your code.
@@ -89,6 +90,7 @@ linters-settings:
89
90
locale : US
90
91
91
92
linters :
93
+ disable-all : true
92
94
enable :
93
95
- megacheck
94
96
- govet
@@ -121,6 +123,9 @@ issues:
121
123
- scopelint
122
124
- unparam
123
125
- goconst
126
+ - path : (.*).go
127
+ linters :
128
+ - typecheck
124
129
125
130
# G306: Expect WriteFile permissions to be 0600 or less
126
131
# mainly seen in internal/cli/wrtier.go
@@ -146,8 +151,8 @@ issues:
146
151
# Default is false.
147
152
new : false
148
153
149
- # Maximum issues count per one linter. Set to 0 to disable. Default is 50.
150
- max-per-linter : 0
154
+ # # Maximum issues count per one linter. Set to 0 to disable. Default is 50.
155
+ # max-issues -per-linter: 0
151
156
152
157
# Maximum count of issues with the same text. Set to 0 to disable. Default is 3.
153
158
max-same-issues : 0
0 commit comments