mirror of
https://github.com/mgechev/revive.git
synced 2025-11-27 22:18:41 +02:00
feature: new rules identical-switch-branches and identical-ifelseif-branches
These new rules result from the refactoring of `identical-branches` that will cover only simple/single if..else statements.
This commit is contained in:
11
test/identical_switch_branches_test.go
Normal file
11
test/identical_switch_branches_test.go
Normal file
@@ -0,0 +1,11 @@
|
||||
package test
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/mgechev/revive/rule"
|
||||
)
|
||||
|
||||
func TestIdenticalSwitchBranches(t *testing.T) {
|
||||
testRule(t, "identical_switch_branches", &rule.IdenticalSwitchBranchesRule{})
|
||||
}
|
||||
Reference in New Issue
Block a user