@@ -58,6 +58,7 @@ linters:
5858 lll :
5959 line-length : 200
6060 exclusions :
61+ # warn-unused: true
6162 generated : lax
6263 presets :
6364 - comments
@@ -73,14 +74,10 @@ linters:
7374 - linters :
7475 - nolintlint
7576 path : (check_tcp|check_dns|nameserver.*)\.go
76- - path : (.+)\.go$
77- text : ' `noCopy` is unused'
7877 - path : (.+)\.go$
7978 text : ' Magic number: 0.1, in'
8079 - path : (.+)\.go$
8180 text : ' Magic number: 0.01, in'
82- - path : (.+)\.go$
83- text : ' Magic number: 0.001, in'
8481 - path : (.+)\.go$
8582 text : ' Magic number: 2, in'
8683 - path : (.+)\.go$
@@ -109,8 +106,6 @@ linters:
109106 text : ' Magic number: 22, in'
110107 - path : (.+)\.go$
111108 text : ' Magic number: 23, in'
112- - path : (.+)\.go$
113- text : ' Magic number: 24, in'
114109 - path : (.+)\.go$
115110 text : ' Magic number: 31, in'
116111 - path : (.+)\.go$
@@ -121,8 +116,6 @@ linters:
121116 text : ' Magic number: 59, in'
122117 - path : (.+)\.go$
123118 text : ' Magic number: 60, in'
124- - path : (.+)\.go$
125- text : ' Magic number: 64, in'
126119 - path : (.+)\.go$
127120 text : ' Magic number: 100, in'
128121 - path : (.+)\.go$
@@ -133,8 +126,6 @@ linters:
133126 text : ' Magic number: 365, in'
134127 - path : (.+)\.go$
135128 text : ' Magic number: 500, in'
136- - path : (.+)\.go$
137- text : ' Magic number: 512, in'
138129 - path : (.+)\.go$
139130 text : ' Magic number: 600, in'
140131 - path : (.+)\.go$
@@ -151,40 +142,16 @@ linters:
151142 text : ' Magic number: 1e6, in'
152143 - path : (.+)\.go$
153144 text : ' Magic number: 1e7, in'
154- - path : (.+)\.go$
155- text : ' Magic number: 1e9, in'
156- - path : (.+)\.go$
157- text : ' Magic number: 1e12, in'
158- - path : (.+)\.go$
159- text : ' Magic number: 1e15, in'
160145 - path : (.+)\.go$
161146 text : ' Magic number: 0o600, in'
162147 - path : (.+)\.go$
163148 text : ' Magic number: 0o700, in'
164- - path : (.+)\.go$
165- text : noCopy is missing in
166149 - path : (.+)\.go$
167150 text : variable name 'ok' is too short
168151 - path : (.+)\.go$
169152 text : Function 'setListenTLSConfig' has too many statements
170- - path : (.+)\.go$
171- text : Function 'parseAnyArg' has too many statements
172- - path : (.+)\.go$
173- text : complexity.*setListenTLSConfig
174- - path : (.+)\.go$
175- text : complexity.*checkFlags
176- - path : (.+)\.go$
177- text : Function 'readConfiguration' has too many statements
178- - path : (.+)\.go$
179- text : complexity.*readConfiguration
180- - path : (.+)\.go$
181- text : Function 'Check' has too many statements
182153 - path : (.+)\.go$
183154 text : Function 'Check' is too long
184- - path : (.+)\.go$
185- text : Function 'fetchProcs' is too long
186- - path : (.+)\.go$
187- text : Function 'buildListMacros' is too long
188155 - path : (.+)\.go$
189156 text : Function 'fetchProcs' has too many statements
190157 - path : (.+)\.go$
@@ -195,8 +162,6 @@ linters:
195162 text : cognitive complexity .* of func .*conditionAdd
196163 - path : (.+)\.go$
197164 text : cognitive complexity .* of func .*.matchSingle
198- - path : (.+)\.go$
199- text : cognitive complexity .* of func .*splitToken
200165 - path : (.+)\.go$
201166 text : cognitive complexity .* of func .*ReplaceConditionals
202167 - path : (.+)\.go$
@@ -223,8 +188,6 @@ linters:
223188 text : parameter name 'a' is too short for the scope of its usage
224189 - path : (.+)\.go$
225190 text : parameter name 'b' is too short for the scope of its usage
226- - path : (.+)\.go$
227- text : .execCommand` - `timeout` always receives `DefaultCmdTimeout
228191 - path : (.+)\.go$
229192 text : ' fieldalignment: struct'
230193 - path : (.+)(utils|utils_test|fieldsn|asciiTable)\.go$
@@ -245,9 +208,6 @@ linters:
245208 text : ' SA4023'
246209 paths :
247210 - pkg/pdh/pdh.go
248- - third_party$
249- - builtin$
250- - examples$
251211issues :
252212 max-issues-per-linter : 0
253213 max-same-issues : 0
@@ -257,8 +217,3 @@ formatters:
257217 - goimports
258218 exclusions :
259219 generated : lax
260- paths :
261- - pkg/pdh/pdh.go
262- - third_party$
263- - builtin$
264- - examples$
0 commit comments