1
0
mirror of https://github.com/mgechev/revive.git synced 2025-07-13 01:00:17 +02:00

Add extra rules and tests

This commit is contained in:
mgechev
2018-01-23 19:13:02 -08:00
parent a955825a28
commit cac7f0e036
17 changed files with 137 additions and 165 deletions

View File

@ -4,6 +4,8 @@
// license that can be found in the LICENSE file or at
// https://developers.google.com/open-source/licenses/bsd.
// The code contains changes from the original source.
package testutil
import (
@ -31,7 +33,12 @@ import (
var lintMatch = flag.String("lint.match", "", "restrict fixtures matches to this pattern")
var rules = []linter.Rule{&rule.VarDeclarationsRule{}}
var rules = []linter.Rule{
&rule.VarDeclarationsRule{},
&rule.PackageCommentsRule{},
&rule.DotImportsRule{},
&rule.BlankImportsRule{},
}
func TestAll(t *testing.T) {
baseDir := "../fixtures/"