mirror of
https://github.com/mgechev/revive.git
synced 2024-12-12 10:44:59 +02:00
68deb55492
* Adds rule superfluous-else (an extension of indent-error-flow) * Fix superfluous-else rule struct namming. * Adds superfuous-else rule to the rules table * Adds confusing-naming rule * adds multifile test * clean-up * fix config.go * deep-exit: first working version * fix pbs from @mgechev review * deep-exit: modifies failure message
12 lines
156 B
Go
12 lines
156 B
Go
package test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/mgechev/revive/rule"
|
|
)
|
|
|
|
func TestDeepExit(t *testing.T) {
|
|
testRule(t, "deep-exit", &rule.DeepExitRule{})
|
|
}
|