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

fix: invalid message reported for directive comment (#1209)

They were invalid but not reported with the correct message.

So they were wrongly caught by golangci-lint that excluded them by default.
This commit is contained in:
ccoVeille
2025-01-27 07:12:16 +01:00
committed by GitHub
parent d9c61c1518
commit 8cb2599624
3 changed files with 52 additions and 8 deletions

View File

@@ -36,3 +36,7 @@ func TestCheckDisablingOnDeclarationTypes(t *testing.T) {
testRule(t, "exported_issue_1045", &rule.ExportedRule{}, &lint.RuleConfig{Arguments: args})
}
func TestCheckDirectiveComment(t *testing.T) {
testRule(t, "exported_issue_1202", &rule.ExportedRule{}, &lint.RuleConfig{})
}