1
0
mirror of https://github.com/mgechev/revive.git synced 2025-11-23 22:04:49 +02:00

Add extra rule

This commit is contained in:
mgechev
2018-02-04 14:51:19 -08:00
parent bd04af7465
commit b5fc0eaffc
10 changed files with 201 additions and 34 deletions

View File

@@ -0,0 +1,14 @@
package test
import (
"testing"
"github.com/mgechev/revive/lint"
"github.com/mgechev/revive/rule"
)
func TestMaxPublicStructs(t *testing.T) {
testRule(t, "max-public-structs", &rule.MaxPublicStructsRule{}, &lint.RuleConfig{
Arguments: []interface{}{int64(1)},
})
}