Skip to content

Commit ebd6dcb

Browse files
authoredJul 19, 2022
Revert 'fix: generics (#2991)' (#2995)
1 parent c39bf96 commit ebd6dcb

File tree

1 file changed

+18
-9
lines changed

1 file changed

+18
-9
lines changed
 

‎pkg/lint/lintersdb/manager.go

+18-9
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,8 @@ func (m Manager) GetAllSupportedLinterConfigs() []*linter.Config {
288288
WithSince("v1.18.0").
289289
WithLoadForGoAnalysis().
290290
WithPresets(linter.PresetPerformance, linter.PresetBugs).
291-
WithURL("https://github.com/timakin/bodyclose"),
291+
WithURL("https://github.com/timakin/bodyclose").
292+
WithNoopFallback(m.cfg),
292293

293294
linter.NewConfig(golinters.NewContainedCtx()).
294295
WithSince("1.44.0").
@@ -299,7 +300,8 @@ func (m Manager) GetAllSupportedLinterConfigs() []*linter.Config {
299300
WithSince("v1.43.0").
300301
WithPresets(linter.PresetBugs).
301302
WithLoadForGoAnalysis().
302-
WithURL("https://github.com/sylvia7788/contextcheck"),
303+
WithURL("https://github.com/sylvia7788/contextcheck").
304+
WithNoopFallback(m.cfg),
303305

304306
linter.NewConfig(golinters.NewCyclop(cyclopCfg)).
305307
WithSince("v1.37.0").
@@ -559,7 +561,8 @@ func (m Manager) GetAllSupportedLinterConfigs() []*linter.Config {
559561
WithLoadForGoAnalysis().
560562
WithPresets(linter.PresetStyle).
561563
WithURL("https://github.com/mvdan/interfacer").
562-
Deprecated("The repository of the linter has been archived by the owner.", "v1.38.0", ""),
564+
Deprecated("The repository of the linter has been archived by the owner.", "v1.38.0", "").
565+
WithNoopFallback(m.cfg),
563566

564567
linter.NewConfig(golinters.NewIreturn(ireturnCfg)).
565568
WithSince("v1.43.0").
@@ -609,7 +612,8 @@ func (m Manager) GetAllSupportedLinterConfigs() []*linter.Config {
609612
WithSince("v1.38.0").
610613
WithLoadForGoAnalysis().
611614
WithPresets(linter.PresetBugs).
612-
WithURL("https://github.com/gostaticanalysis/nilerr"),
615+
WithURL("https://github.com/gostaticanalysis/nilerr").
616+
WithNoopFallback(m.cfg),
613617

614618
linter.NewConfig(golinters.NewNilNil(nilNilCfg)).
615619
WithSince("v1.43.0").
@@ -626,7 +630,8 @@ func (m Manager) GetAllSupportedLinterConfigs() []*linter.Config {
626630
WithSince("v1.28.0").
627631
WithLoadForGoAnalysis().
628632
WithPresets(linter.PresetPerformance, linter.PresetBugs).
629-
WithURL("https://github.com/sonatard/noctx"),
633+
WithURL("https://github.com/sonatard/noctx").
634+
WithNoopFallback(m.cfg),
630635

631636
linter.NewConfig(golinters.NewNoNamedReturns(noNamedReturnsCfg)).
632637
WithSince("v1.46.0").
@@ -675,7 +680,8 @@ func (m Manager) GetAllSupportedLinterConfigs() []*linter.Config {
675680
WithSince("v1.23.0").
676681
WithLoadForGoAnalysis().
677682
WithPresets(linter.PresetBugs, linter.PresetSQL).
678-
WithURL("https://github.com/jingyugao/rowserrcheck"),
683+
WithURL("https://github.com/jingyugao/rowserrcheck").
684+
WithNoopFallback(m.cfg),
679685

680686
linter.NewConfig(golinters.NewScopelint()).
681687
WithSince("v1.12.0").
@@ -687,7 +693,8 @@ func (m Manager) GetAllSupportedLinterConfigs() []*linter.Config {
687693
WithSince("v1.28.0").
688694
WithPresets(linter.PresetBugs, linter.PresetSQL).
689695
WithLoadForGoAnalysis().
690-
WithURL("https://github.com/ryanrolds/sqlclosecheck"),
696+
WithURL("https://github.com/ryanrolds/sqlclosecheck").
697+
WithNoopFallback(m.cfg),
691698

692699
linter.NewConfig(golinters.NewStaticcheck(staticcheckCfg)).
693700
WithSince("v1.0.0").
@@ -735,7 +742,8 @@ func (m Manager) GetAllSupportedLinterConfigs() []*linter.Config {
735742
WithSince("v1.32.0").
736743
WithPresets(linter.PresetStyle, linter.PresetTest).
737744
WithLoadForGoAnalysis().
738-
WithURL("https://github.com/moricho/tparallel"),
745+
WithURL("https://github.com/moricho/tparallel").
746+
WithNoopFallback(m.cfg),
739747

740748
linter.NewConfig(golinters.NewTypecheck()).
741749
WithSince("v1.3.0").
@@ -780,7 +788,8 @@ func (m Manager) GetAllSupportedLinterConfigs() []*linter.Config {
780788
WithSince("v1.38.0").
781789
WithPresets(linter.PresetStyle).
782790
WithLoadForGoAnalysis().
783-
WithURL("https://github.com/sanposhiho/wastedassign"),
791+
WithURL("https://github.com/sanposhiho/wastedassign").
792+
WithNoopFallback(m.cfg),
784793

785794
linter.NewConfig(golinters.NewWhitespace(whitespaceCfg)).
786795
WithSince("v1.19.0").

0 commit comments

Comments
 (0)
Please sign in to comment.