File tree 2 files changed +3
-1
lines changed
2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ func (lc *Config) ConsiderSlow() *Config {
35
35
}
36
36
37
37
func (lc * Config ) IsSlowLinter () bool {
38
- return lc .IsSlow || ( lc . LoadMode & packages . NeedTypesInfo != 0 && lc . LoadMode & packages . NeedDeps != 0 )
38
+ return lc .IsSlow
39
39
}
40
40
41
41
func (lc * Config ) WithLoadFiles () * Config {
@@ -46,6 +46,7 @@ func (lc *Config) WithLoadFiles() *Config {
46
46
func (lc * Config ) WithLoadForGoAnalysis () * Config {
47
47
lc = lc .WithLoadFiles ()
48
48
lc .LoadMode |= packages .NeedImports | packages .NeedDeps | packages .NeedExportsFile | packages .NeedTypesSizes
49
+ lc .IsSlow = true
49
50
return lc
50
51
}
51
52
Original file line number Diff line number Diff line change @@ -376,6 +376,7 @@ func (m Manager) GetAllSupportedLinterConfigs() []*linter.Config {
376
376
WithURL ("https://github.com/nishanths/predeclared" ),
377
377
linter .NewConfig (golinters .NewRevive (reviveCfg )).
378
378
WithPresets (linter .PresetStyle ).
379
+ ConsiderSlow ().
379
380
WithURL ("https://github.com/mgechev/revive" ),
380
381
linter .NewConfig (golinters .NewDurationCheck ()).
381
382
WithPresets (linter .PresetBugs ).
You can’t perform that action at this time.
0 commit comments