Skip to content

Commit 4f5ed30

Browse files
committed
fix: moving linter to the end of the list
1 parent b8541fd commit 4f5ed30

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

pkg/lint/lintersdb/manager.go

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -458,12 +458,6 @@ func (m Manager) GetAllSupportedLinterConfigs() []*linter.Config {
458458
WithSince("v1.36.0").
459459
WithPresets(linter.PresetStyle).
460460
WithURL("https://github.com/esimonov/ifshort"),
461-
462-
linter.NewConfig(golinters.NewIreturn(ireturnCfg)).
463-
WithSince("v1.43.0").
464-
WithPresets(linter.PresetStyle).
465-
WithURL("https://github.com/butuzov/ireturn"),
466-
467461
linter.NewConfig(golinters.NewPredeclared(predeclaredCfg)).
468462
WithSince("v1.35.0").
469463
WithPresets(linter.PresetStyle).
@@ -514,6 +508,10 @@ func (m Manager) GetAllSupportedLinterConfigs() []*linter.Config {
514508
WithLoadForGoAnalysis().
515509
WithURL("https://github.com/Antonboom/errname").
516510
WithSince("v1.42.0"),
511+
linter.NewConfig(golinters.NewIreturn(ireturnCfg)).
512+
WithSince("v1.43.0").
513+
WithPresets(linter.PresetStyle).
514+
WithURL("https://github.com/butuzov/ireturn"),
517515

518516
// nolintlint must be last because it looks at the results of all the previous linters for unused nolint directives
519517
linter.NewConfig(golinters.NewNoLintLint()).

0 commit comments

Comments
 (0)