File tree Expand file tree Collapse file tree 2 files changed +10
-7
lines changed Expand file tree Collapse file tree 2 files changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -7,11 +7,13 @@ import (
7
7
"github.com/golangci/golangci-lint/pkg/golinters/goanalysis"
8
8
)
9
9
10
- func NewGoStrconv () * goanalysis.Linter {
10
+ func NewPerfSprint () * goanalysis.Linter {
11
+ a := analyzer .Analyzer
12
+
11
13
return goanalysis .NewLinter (
12
- "perfsprint" ,
13
- "Checks usages of `fmt.Sprintf` which have faster alternatives." ,
14
- []* analysis.Analyzer {analyzer . Analyzer },
14
+ a . Name ,
15
+ a . Doc ,
16
+ []* analysis.Analyzer {a },
15
17
nil ,
16
- ).WithLoadMode (goanalysis .LoadModeSyntax )
18
+ ).WithLoadMode (goanalysis .LoadModeTypesInfo )
17
19
}
Original file line number Diff line number Diff line change @@ -713,8 +713,9 @@ func (m Manager) GetAllSupportedLinterConfigs() []*linter.Config {
713
713
WithURL ("https://github.com/kunwardeep/paralleltest" ),
714
714
715
715
linter .NewConfig (golinters .NewPerfSprint ()).
716
- WithSince ("v1.54.2" ).
717
- WithPresets (linter .PresetStyle ).
716
+ WithSince ("v1.55.0" ).
717
+ WithLoadForGoAnalysis ().
718
+ WithPresets (linter .PresetPerformance ).
718
719
WithURL ("https://github.com/catenacyber/perfsprint" ),
719
720
720
721
linter .NewConfig (golinters .NewPreAlloc (preallocCfg )).
You can’t perform that action at this time.
0 commit comments