1
0
mirror of https://github.com/mgechev/revive.git synced 2025-02-07 13:31:42 +02:00
revive/test/disable_annotations_test.go
2024-11-11 19:31:18 +01:00

21 lines
494 B
Go

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{})
}
func TestDisableNextLineAnnotations(t *testing.T) {
testRule(t, "disable_annotations3", &rule.VarNamingRule{}, &lint.RuleConfig{})
}