mirror of
https://github.com/mgechev/revive.git
synced 2024-11-28 08:49:11 +02:00
fbefad8558
* 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 * clean master * new ADS rule: newerr * ADS-print working version * ads-print final version * ads-lost-err working version * adds duplicated-imports rule * adds duplicated-imports rule
12 lines
183 B
Go
12 lines
183 B
Go
package test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/mgechev/revive/rule"
|
|
)
|
|
|
|
func TestDuplicatedImports(t *testing.T) {
|
|
testRule(t, "duplicated-imports", &rule.DuplicatedImportsRule{})
|
|
}
|