1
0
mirror of https://github.com/mgechev/revive.git synced 2025-11-25 22:12:38 +02:00

exported: improve detection and error message (#1403)

This commit is contained in:
ccoVeille
2025-07-22 10:47:37 +02:00
committed by GitHub
parent 7de7cf3076
commit 40a690dff5
3 changed files with 166 additions and 34 deletions

View File

@@ -51,3 +51,7 @@ func TestCheckDeprecationComment(t *testing.T) {
func TestExportedMainPackage(t *testing.T) {
testRule(t, "exported_main", &rule.ExportedRule{}, &lint.RuleConfig{})
}
func TestCommentVariations(t *testing.T) {
testRule(t, "exported_issue_1235", &rule.ExportedRule{}, &lint.RuleConfig{})
}