1
0
mirror of https://github.com/mgechev/revive.git synced 2025-11-25 22:12:38 +02:00

feature: new rule enforce-switch-default (#1390)

This commit is contained in:
chavacava
2025-06-01 09:57:47 +02:00
committed by GitHub
parent 6becd540e4
commit cfd69439bb
10 changed files with 328 additions and 0 deletions

View File

@@ -104,6 +104,7 @@ var allRules = append([]lint.Rule{
&rule.RedundantTestMainExitRule{},
&rule.UnnecessaryFormatRule{},
&rule.UseFmtPrintRule{},
&rule.EnforceSwitchStyleRule{},
}, defaultRules...)
// allFormatters is a list of all available formatters to output the linting results.