Skip to content

Commit 2a28327

Browse files
committed
chore: remove WithLoadForGoAnalysis for NoopDeprecated linters
1 parent 794a340 commit 2a28327

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

pkg/lint/lintersdb/builder_linter.go

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,6 @@ func (LinterBuilder) Build(cfg *config.Config) ([]*linter.Config, error) {
194194

195195
linter.NewConfig(linter.NewNoopDeprecated("deadcode", cfg, linter.DeprecationError)).
196196
WithSince("v1.0.0").
197-
WithLoadForGoAnalysis().
198197
WithPresets(linter.PresetUnused).
199198
WithURL("https://github.com/remyoudompheng/go-misc/tree/master/deadcode").
200199
DeprecatedError("The owner seems to have abandoned the linter.", "v1.49.0", "unused"),
@@ -253,7 +252,6 @@ func (LinterBuilder) Build(cfg *config.Config) ([]*linter.Config, error) {
253252
linter.NewConfig(linter.NewNoopDeprecated("execinquery", cfg, linter.DeprecationError)).
254253
WithSince("v1.46.0").
255254
WithPresets(linter.PresetSQL).
256-
WithLoadForGoAnalysis().
257255
WithURL("https://github.com/1uf3/execinquery").
258256
DeprecatedError("The repository of the linter has been archived by the owner.", "v1.58.0", ""),
259257

@@ -266,7 +264,6 @@ func (LinterBuilder) Build(cfg *config.Config) ([]*linter.Config, error) {
266264
linter.NewConfig(linter.NewNoopDeprecated("exhaustivestruct", cfg, linter.DeprecationError)).
267265
WithSince("v1.32.0").
268266
WithPresets(linter.PresetStyle, linter.PresetTest).
269-
WithLoadForGoAnalysis().
270267
WithURL("https://github.com/mbilski/exhaustivestruct").
271268
DeprecatedError("The repository of the linter has been deprecated by the owner.", "v1.46.0", "exhaustruct"),
272269

@@ -408,7 +405,6 @@ func (LinterBuilder) Build(cfg *config.Config) ([]*linter.Config, error) {
408405

409406
linter.NewConfig(linter.NewNoopDeprecated("golint", cfg, linter.DeprecationError)).
410407
WithSince("v1.0.0").
411-
WithLoadForGoAnalysis().
412408
WithPresets(linter.PresetStyle).
413409
WithURL("https://github.com/golang/lint").
414410
DeprecatedError("The repository of the linter has been archived by the owner.", "v1.41.0", "revive"),
@@ -509,7 +505,6 @@ func (LinterBuilder) Build(cfg *config.Config) ([]*linter.Config, error) {
509505

510506
linter.NewConfig(linter.NewNoopDeprecated("interfacer", cfg, linter.DeprecationError)).
511507
WithSince("v1.0.0").
512-
WithLoadForGoAnalysis().
513508
WithPresets(linter.PresetStyle).
514509
WithURL("https://github.com/mvdan/interfacer").
515510
DeprecatedError("The repository of the linter has been archived by the owner.", "v1.38.0", ""),
@@ -551,7 +546,6 @@ func (LinterBuilder) Build(cfg *config.Config) ([]*linter.Config, error) {
551546

552547
linter.NewConfig(linter.NewNoopDeprecated("maligned", cfg, linter.DeprecationError)).
553548
WithSince("v1.0.0").
554-
WithLoadForGoAnalysis().
555549
WithPresets(linter.PresetPerformance).
556550
WithURL("https://github.com/mdempsky/maligned").
557551
DeprecatedError("The repository of the linter has been archived by the owner.", "v1.38.0", "govet 'fieldalignment'"),
@@ -717,7 +711,6 @@ func (LinterBuilder) Build(cfg *config.Config) ([]*linter.Config, error) {
717711

718712
linter.NewConfig(linter.NewNoopDeprecated("structcheck", cfg, linter.DeprecationError)).
719713
WithSince("v1.0.0").
720-
WithLoadForGoAnalysis().
721714
WithPresets(linter.PresetUnused).
722715
WithURL("https://github.com/opennota/check").
723716
DeprecatedError("The owner seems to have abandoned the linter.", "v1.49.0", "unused"),
@@ -814,7 +807,6 @@ func (LinterBuilder) Build(cfg *config.Config) ([]*linter.Config, error) {
814807

815808
linter.NewConfig(linter.NewNoopDeprecated("varcheck", cfg, linter.DeprecationError)).
816809
WithSince("v1.0.0").
817-
WithLoadForGoAnalysis().
818810
WithPresets(linter.PresetUnused).
819811
WithURL("https://github.com/opennota/check").
820812
DeprecatedError("The owner seems to have abandoned the linter.", "v1.49.0", "unused"),

0 commit comments

Comments
 (0)