@@ -218,15 +218,14 @@ func (m Manager) GetAllSupportedLinterConfigs() []*linter.Config {
218
218
WithURL ("https://github.com/mdempsky/unconvert" ),
219
219
linter .NewConfig (golinters .NewIneffassign ()).
220
220
WithSince ("v1.0.0" ).
221
- WithLoadForGoAnalysis ().
222
221
WithPresets (linter .PresetUnused ).
223
222
WithURL ("https://github.com/gordonklaus/ineffassign" ),
224
223
linter .NewConfig (golinters .NewDupl ()).
225
224
WithSince ("v1.0.0" ).
226
225
WithPresets (linter .PresetStyle ).
227
226
WithURL ("https://github.com/mibk/dupl" ),
228
227
linter .NewConfig (golinters .NewGoconst ()).
229
- WithSince ("" ).
228
+ WithSince ("v1.0.0 " ).
230
229
WithPresets (linter .PresetStyle ).
231
230
WithURL ("https://github.com/jgautheron/goconst" ),
232
231
linter .NewConfig (golinters .NewDeadcode ()).
@@ -255,7 +254,6 @@ func (m Manager) GetAllSupportedLinterConfigs() []*linter.Config {
255
254
linter .NewConfig (golinters .NewAsciicheck ()).
256
255
WithSince ("v1.26.0" ).
257
256
WithPresets (linter .PresetBugs , linter .PresetStyle ).
258
- WithLoadForGoAnalysis ().
259
257
WithURL ("https://github.com/tdakkota/asciicheck" ),
260
258
261
259
linter .NewConfig (golinters .NewGofmt ()).
@@ -276,12 +274,10 @@ func (m Manager) GetAllSupportedLinterConfigs() []*linter.Config {
276
274
linter .NewConfig (golinters .NewGoHeader ()).
277
275
WithSince ("v1.28.0" ).
278
276
WithPresets (linter .PresetStyle ).
279
- WithLoadForGoAnalysis ().
280
277
WithURL ("https://github.com/denis-tingajkin/go-header" ),
281
278
linter .NewConfig (golinters .NewGci ()).
282
279
WithSince ("v1.30.0" ).
283
280
WithPresets (linter .PresetFormatting , linter .PresetImport ).
284
- WithLoadForGoAnalysis ().
285
281
WithAutoFix ().
286
282
WithURL ("https://github.com/daixiang0/gci" ),
287
283
linter .NewConfig (golinters .NewMaligned ()).
@@ -371,7 +367,6 @@ func (m Manager) GetAllSupportedLinterConfigs() []*linter.Config {
371
367
linter .NewConfig (golinters .NewGomodguard ()).
372
368
WithSince ("v1.25.0" ).
373
369
WithPresets (linter .PresetStyle , linter .PresetImport , linter .PresetModule ).
374
- WithLoadForGoAnalysis ().
375
370
WithURL ("https://github.com/ryancurrah/gomodguard" ),
376
371
linter .NewConfig (golinters .NewGodot ()).
377
372
WithSince ("v1.25.0" ).
@@ -381,7 +376,6 @@ func (m Manager) GetAllSupportedLinterConfigs() []*linter.Config {
381
376
linter .NewConfig (golinters .NewTestpackage (testpackageCfg )).
382
377
WithSince ("v1.25.0" ).
383
378
WithPresets (linter .PresetStyle , linter .PresetTest ).
384
- WithLoadForGoAnalysis ().
385
379
WithURL ("https://github.com/maratori/testpackage" ),
386
380
linter .NewConfig (golinters .NewNestif ()).
387
381
WithSince ("v1.25.0" ).
@@ -405,7 +399,6 @@ func (m Manager) GetAllSupportedLinterConfigs() []*linter.Config {
405
399
linter .NewConfig (golinters .NewNLReturn ()).
406
400
WithSince ("v1.30.0" ).
407
401
WithPresets (linter .PresetStyle ).
408
- WithLoadForGoAnalysis ().
409
402
WithURL ("https://github.com/ssgreg/nlreturn" ),
410
403
linter .NewConfig (golinters .NewWrapcheck ()).
411
404
WithSince ("v1.32.0" ).
@@ -435,7 +428,6 @@ func (m Manager) GetAllSupportedLinterConfigs() []*linter.Config {
435
428
linter .NewConfig (golinters .NewParallelTest ()).
436
429
WithSince ("v1.33.0" ).
437
430
WithPresets (linter .PresetStyle , linter .PresetTest ).
438
- WithLoadForGoAnalysis ().
439
431
WithURL ("https://github.com/kunwardeep/paralleltest" ),
440
432
linter .NewConfig (golinters .NewMakezero ()).
441
433
WithSince ("v1.34.0" ).
@@ -482,12 +474,10 @@ func (m Manager) GetAllSupportedLinterConfigs() []*linter.Config {
482
474
linter .NewConfig (golinters .NewForceTypeAssert ()).
483
475
WithSince ("v1.38.0" ).
484
476
WithPresets (linter .PresetStyle ).
485
- WithLoadForGoAnalysis ().
486
477
WithURL ("https://github.com/gostaticanalysis/forcetypeassert" ),
487
478
linter .NewConfig (golinters .NewGoModDirectives (goModDirectivesCfg )).
488
479
WithSince ("v1.39.0" ).
489
480
WithPresets (linter .PresetStyle , linter .PresetModule ).
490
- WithLoadForGoAnalysis ().
491
481
WithURL ("https://github.com/ldez/gomoddirectives" ),
492
482
493
483
// nolintlint must be last because it looks at the results of all the previous linters for unused nolint directives
0 commit comments