1
0
mirror of https://github.com/mgechev/revive.git synced 2024-11-24 08:32:22 +02:00
revive/test/confusing-naming_test.go
chavacava 443bfc9e0b New rule: Confusing naming (#16)
* 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

* [WIP] fix multiple file test

* draft solution for detecting confusing-names through multiple files

* [WIP] confusing-name multiple files

* draft working version

* cleaner version + more informative messages

* adds check on struct field names

* confusing-namming: fix tests
2018-07-02 12:05:20 +10:00

13 lines
207 B
Go

package test
import (
"testing"
"github.com/mgechev/revive/rule"
)
// TestConfusingNaming rule.
func TestConfusingNaming(t *testing.T) {
testRule(t, "confusing-naming1", &rule.ConfusingNamingRule{})
}