1
0
mirror of https://github.com/mgechev/revive.git synced 2025-11-27 22:18:41 +02:00

exported: correctly report deprecation-only comments (#1295)

This commit is contained in:
Semih Buyukgungor
2025-04-06 13:59:04 +03:00
committed by GitHub
parent 2442da0712
commit c882cb8f4f
3 changed files with 78 additions and 12 deletions

View File

@@ -43,3 +43,7 @@ func TestCheckDisablingOnDeclarationTypes(t *testing.T) {
func TestCheckDirectiveComment(t *testing.T) {
testRule(t, "exported_issue_1202", &rule.ExportedRule{}, &lint.RuleConfig{})
}
func TestCheckDeprecationComment(t *testing.T) {
testRule(t, "exported_issue_1231", &rule.ExportedRule{}, &lint.RuleConfig{})
}