mirror of
https://github.com/mgechev/revive.git
synced 2025-12-05 22:53:41 +02:00
New rule: modifies-parameter (#25)
* 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 * working version
This commit is contained in:
12
test/modifies-param_test.go
Normal file
12
test/modifies-param_test.go
Normal file
@@ -0,0 +1,12 @@
|
||||
package test
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/mgechev/revive/rule"
|
||||
)
|
||||
|
||||
// TestModifiesParam rule.
|
||||
func TestModifiesParam(t *testing.T) {
|
||||
testRule(t, "modifies-param", &rule.ModifiesParamRule{})
|
||||
}
|
||||
Reference in New Issue
Block a user