mirror of
https://github.com/mgechev/revive.git
synced 2024-11-24 08:32:22 +02:00
1fa5046357
* Adds rule superfluous-else (an extension of indent-error-flow) * initial (non functional) version * empty-block working version * adds tests for empty-block rule * Adds empty-block to the rules table * code clean-up
13 lines
186 B
Go
13 lines
186 B
Go
package test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/mgechev/revive/rule"
|
|
)
|
|
|
|
// TestEmptyBlock rule.
|
|
func TestEmptyBlock(t *testing.T) {
|
|
testRule(t, "empty-block", &rule.EmptyBlockRule{})
|
|
}
|