mirror of
https://github.com/mgechev/revive.git
synced 2025-11-27 22:18:41 +02:00
Adds rule superfluous-else (an extension of indent-error-flow) (#13)
* Adds rule superfluous-else (an extension of indent-error-flow) * Fix superfluous-else rule struct namming. * Adds superfuous-else rule to the rules table
This commit is contained in:
12
test/superfluous-else_test.go
Normal file
12
test/superfluous-else_test.go
Normal file
@@ -0,0 +1,12 @@
|
||||
package test
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/mgechev/revive/rule"
|
||||
)
|
||||
|
||||
// TestSuperfluousElse rule.
|
||||
func TestSuperfluousElse(t *testing.T) {
|
||||
testRule(t, "superfluous-else", &rule.SuperfluousElseRule{})
|
||||
}
|
||||
Reference in New Issue
Block a user