Skip to content

Commit f5b92e1

Browse files
milasldez
andauthored
staticcheck: re-enable for go1.18 (#2746)
Co-authored-by: Fernandez Ludovic <[email protected]>
1 parent 7d24a49 commit f5b92e1

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

pkg/lint/lintersdb/manager.go

+4-8
Original file line numberDiff line numberDiff line change
@@ -419,8 +419,7 @@ func (m Manager) GetAllSupportedLinterConfigs() []*linter.Config {
419419
WithLoadForGoAnalysis().
420420
WithPresets(linter.PresetStyle).
421421
WithAlternativeNames(megacheckName).
422-
WithURL("https://github.com/dominikh/go-tools/tree/master/simple").
423-
WithNoopFallback(m.cfg),
422+
WithURL("https://github.com/dominikh/go-tools/tree/master/simple"),
424423

425424
linter.NewConfig(golinters.NewGovet(govetCfg)).
426425
WithSince("v1.0.0").
@@ -578,8 +577,7 @@ func (m Manager) GetAllSupportedLinterConfigs() []*linter.Config {
578577
WithLoadForGoAnalysis().
579578
WithPresets(linter.PresetBugs, linter.PresetMetaLinter).
580579
WithAlternativeNames(megacheckName).
581-
WithURL("https://staticcheck.io/").
582-
WithNoopFallback(m.cfg),
580+
WithURL("https://staticcheck.io/"),
583581

584582
linter.NewConfig(golinters.NewStructcheck()).
585583
WithSince("v1.0.0").
@@ -592,8 +590,7 @@ func (m Manager) GetAllSupportedLinterConfigs() []*linter.Config {
592590
WithSince("v1.20.0").
593591
WithLoadForGoAnalysis().
594592
WithPresets(linter.PresetStyle).
595-
WithURL("https://github.com/dominikh/go-tools/tree/master/stylecheck").
596-
WithNoopFallback(m.cfg),
593+
WithURL("https://github.com/dominikh/go-tools/tree/master/stylecheck"),
597594

598595
linter.NewConfig(golinters.NewTagliatelle(tagliatelleCfg)).
599596
WithSince("v1.40.0").
@@ -650,8 +647,7 @@ func (m Manager) GetAllSupportedLinterConfigs() []*linter.Config {
650647
WithAlternativeNames(megacheckName).
651648
ConsiderSlow().
652649
WithChangeTypes().
653-
WithURL("https://github.com/dominikh/go-tools/tree/master/unused").
654-
WithNoopFallback(m.cfg),
650+
WithURL("https://github.com/dominikh/go-tools/tree/master/unused"),
655651

656652
linter.NewConfig(golinters.NewVarcheck()).
657653
WithSince("v1.0.0").

0 commit comments

Comments
 (0)