@@ -152,114 +152,112 @@ linters:
152
152
- go-require
153
153
usetesting :
154
154
os-setenv : false # we already have a test "framework" to handle env vars
155
+ funcorder :
156
+ struct-method : false
155
157
156
158
exclusions :
157
159
warn-unused : true
158
160
presets :
159
161
- comments
160
162
- std-error-handling
161
163
rules :
162
- - linters :
164
+ - path : (.+)_test.go
165
+ linters :
163
166
- funlen
164
167
- goconst
165
168
- maintidx
166
- path : (.+)_test.go
167
- - linters :
168
- - errcheck
169
- path : (.+)_test.go
169
+ - path : (.+)_test.go
170
170
text : Error return value of `fmt.Fprintln` is not checked
171
- - linters :
172
- - gochecknoglobals
173
- path : certcrypto/crypto.go
171
+ linters :
172
+ - errcheck
173
+ - path : certcrypto/crypto.go
174
174
text : (tlsFeatureExtensionOID|ocspMustStapleFeature) is a global variable
175
- - linters :
175
+ linters :
176
176
- gochecknoglobals
177
- path : challenge/dns01/nameserver.go
177
+ - path : challenge/dns01/nameserver.go
178
178
text : (defaultNameservers|recursiveNameservers|fqdnSoaCache|muFqdnSoaCache) is a global variable
179
- - linters :
179
+ linters :
180
180
- gochecknoglobals
181
- path : challenge/dns01/nameserver_.+.go
181
+ - path : challenge/dns01/nameserver_.+.go
182
182
text : dnsTimeout is a global variable
183
- - linters :
183
+ linters :
184
184
- gochecknoglobals
185
- path : challenge/dns01/nameserver_test.go
185
+ - path : challenge/dns01/nameserver_test.go
186
186
text : findXByFqdnTestCases is a global variable
187
- - linters :
188
- - goconst
189
- path : challenge/http01/domain_matcher.go
190
- text : string `Host` has \d occurrences, make it a constant
191
- - linters :
192
- - gocyclo
193
- path : challenge/http01/domain_matcher.go
187
+ linters :
188
+ - gochecknoglobals
189
+ - path : challenge/http01/domain_matcher.go
194
190
text : cyclomatic complexity \d+ of func `parseForwardedHeader` is high
195
- - linters :
196
- - funlen
197
- path : challenge/http01/domain_matcher.go
191
+ linters :
192
+ - gocyclo
193
+ - path : challenge/http01/domain_matcher.go
198
194
text : Function 'parseForwardedHeader' has too many statements
199
- - linters :
200
- - gochecknoglobals
201
- path : challenge/tlsalpn01/tls_alpn_challenge.go
195
+ linters :
196
+ - funlen
197
+ - path : challenge/tlsalpn01/tls_alpn_challenge.go
202
198
text : idPeAcmeIdentifierV1 is a global variable
203
- - linters :
199
+ linters :
204
200
- gochecknoglobals
205
- path : log/logger.go
201
+ - path : log/logger.go
206
202
text : Logger is a global variable
207
- - linters :
203
+ linters :
208
204
- gochecknoglobals
209
- path : e2e/(dnschallenge/)?[\d\w]+_test.go
205
+ - path : e2e/(dnschallenge/)?[\d\w]+_test.go
210
206
text : load is a global variable
211
- - linters :
207
+ linters :
212
208
- gochecknoglobals
213
- path : providers/dns/([\d\w]+/)*[\d\w]+_test.go
209
+ - path : providers/dns/([\d\w]+/)*[\d\w]+_test.go
214
210
text : envTest is a global variable
215
- - linters :
211
+ linters :
216
212
- gochecknoglobals
217
- path : providers/http/([\d\w]+/)*[\d\w]+_test.go
213
+ - path : providers/http/([\d\w]+/)*[\d\w]+_test.go
218
214
text : envTest is a global variable
219
- - linters :
215
+ linters :
220
216
- gochecknoglobals
221
- path : providers/dns/namecheap/namecheap_test.go
217
+ - path : providers/dns/namecheap/namecheap_test.go
222
218
text : testCases is a global variable
223
- - linters :
219
+ linters :
224
220
- gochecknoglobals
225
- path : providers/dns/acmedns/mock_test.go
221
+ - path : providers/dns/acmedns/mock_test.go
226
222
text : egTestAccount is a global variable
227
- - linters :
223
+ linters :
228
224
- gochecknoglobals
229
- path : providers/http/memcached/memcached_test.go
225
+ - path : providers/http/memcached/memcached_test.go
230
226
text : memcachedHosts is a global variable
231
- - linters :
232
- - misspell
233
- path : providers/dns/checkdomain/internal/types.go
227
+ linters :
228
+ - gochecknoglobals
229
+ - path : providers/dns/checkdomain/internal/types.go
234
230
text : ' `payed` is a misspelling of `paid`'
235
- - linters :
231
+ linters :
232
+ - misspell
233
+ - path : platform/tester/env_test.go
234
+ linters :
236
235
- thelper
237
- path : platform/tester/env_test.go
238
- - linters :
239
- - staticcheck
240
- path : providers/dns/oraclecloud/oraclecloud_test.go
236
+ - path : providers/dns/oraclecloud/oraclecloud_test.go
241
237
text : ' SA1019: x509.EncryptPEMBlock has been deprecated since Go 1.16'
242
- - linters :
243
- - gochecknoglobals
244
- path : providers/dns/sakuracloud/wrapper.go
238
+ linters :
239
+ - staticcheck
240
+ - path : providers/dns/sakuracloud/wrapper.go
245
241
text : mu is a global variable
246
- - linters :
247
- - gocyclo
248
- path : cmd/cmd_renew.go
242
+ linters :
243
+ - gochecknoglobals
244
+ - path : cmd/cmd_renew.go
249
245
text : cyclomatic complexity \d+ of func `(renewForDomains|renewForCSR)` is high
250
- - linters :
251
- - funlen
252
- path : cmd/cmd_renew.go
253
- text : Function 'renewForDomains' has too many statements
254
- - linters :
246
+ linters :
255
247
- gocyclo
256
- path : providers/dns/cpanel/cpanel.go
248
+ - path : cmd/cmd_renew.go
249
+ text : Function 'renewForDomains' has too many statements
250
+ linters :
251
+ - funlen
252
+ - path : providers/dns/cpanel/cpanel.go
257
253
text : cyclomatic complexity 13 of func `\(\*DNSProvider\)\.CleanUp` is high
258
- - linters :
259
- - staticcheck
260
- # Those elements have been replaced by non-exposed structures.
261
- path : providers/dns/linode/linode_test.go
254
+ linters :
255
+ - gocyclo
256
+ # Those elements have been replaced by non-exposed structures.
257
+ - path : providers/dns/linode/linode_test.go
262
258
text : ' SA1019: linodego\.(DomainsPagedResponse|DomainRecordsPagedResponse) is deprecated'
259
+ linters :
260
+ - staticcheck
263
261
264
262
issues :
265
263
max-issues-per-linter : 0
0 commit comments