mirror of
https://github.com/scratchfoundation/golangci-lint.git
synced 2025-08-28 22:28:43 -04:00
Add perfsprint linter (#3714)
Co-authored-by: Fernandez Ludovic <ldez@users.noreply.github.com> Co-authored-by: Anton Telyshev <anton.telishev@yandex.ru>
This commit is contained in:
parent
1bfcc5f842
commit
de1c391922
6 changed files with 79 additions and 0 deletions
|
@ -712,6 +712,12 @@ func (m Manager) GetAllSupportedLinterConfigs() []*linter.Config {
|
|||
WithPresets(linter.PresetStyle, linter.PresetTest).
|
||||
WithURL("https://github.com/kunwardeep/paralleltest"),
|
||||
|
||||
linter.NewConfig(golinters.NewPerfSprint()).
|
||||
WithSince("v1.55.0").
|
||||
WithLoadForGoAnalysis().
|
||||
WithPresets(linter.PresetPerformance).
|
||||
WithURL("https://github.com/catenacyber/perfsprint"),
|
||||
|
||||
linter.NewConfig(golinters.NewPreAlloc(preallocCfg)).
|
||||
WithSince("v1.19.0").
|
||||
WithPresets(linter.PresetPerformance).
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue