1
0
mirror of https://github.com/mgechev/revive.git synced 2025-11-23 22:04:49 +02:00

feature: new rule identical-ifelseif-conditions (#1454)

This commit is contained in:
chavacava
2025-08-04 06:58:14 +02:00
committed by GitHub
parent 12d96adfd4
commit f353e4b0e5
6 changed files with 222 additions and 0 deletions

View File

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