1
0
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:
chavacava
2018-06-08 16:06:29 +02:00
committed by Minko Gechev
parent 5a0635ddfd
commit cbe45ffc79
4 changed files with 167 additions and 0 deletions

View 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{})
}