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:
@@ -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{})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user