1
0
mirror of https://github.com/mgechev/revive.git synced 2025-03-25 21:29:16 +02:00
revive/test/disable_annotations_test.go

21 lines
494 B
Go
Raw Normal View History

package test
import (
"testing"
"github.com/mgechev/revive/lint"
"github.com/mgechev/revive/rule"
)
func TestDisabledAnnotations(t *testing.T) {
testRule(t, "disable_annotations", &rule.ExportedRule{}, &lint.RuleConfig{})
}
func TestModifiedAnnotations(t *testing.T) {
testRule(t, "disable_annotations2", &rule.VarNamingRule{}, &lint.RuleConfig{})
}
2021-07-12 06:31:46 +02:00
func TestDisableNextLineAnnotations(t *testing.T) {
testRule(t, "disable_annotations3", &rule.VarNamingRule{}, &lint.RuleConfig{})
}