Skip to content

SONARJAVA-5472 Add S8491: Detect dangling Javadoc comments#5525

Merged
asya-vorobeva merged 2 commits intomasterfrom
asya/s8491
Mar 13, 2026
Merged

SONARJAVA-5472 Add S8491: Detect dangling Javadoc comments#5525
asya-vorobeva merged 2 commits intomasterfrom
asya/s8491

Conversation

@asya-vorobeva
Copy link
Contributor

@asya-vorobeva asya-vorobeva commented Mar 11, 2026

Implement new rule S8491 to detect when multiple Javadoc comments appear before a class, method, or field. Only the last comment is used by the Javadoc tool, making earlier comments "dangling" and potentially misleading.

Part of SONARJAVA-5472.

@hashicorp-vault-sonar-prod
Copy link
Contributor

hashicorp-vault-sonar-prod bot commented Mar 11, 2026

SONARJAVA-5472

@asya-vorobeva asya-vorobeva force-pushed the asya/s8491 branch 2 times, most recently from 1860567 to 1243730 Compare March 12, 2026 08:05
Copy link
Contributor

@aurelien-coet-sonarsource aurelien-coet-sonarsource left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

asya-vorobeva and others added 2 commits March 13, 2026 12:12
Implement new rule to detect when multiple Javadoc comments appear before
a class, method, or field. Only the last comment is used by the Javadoc
tool, making earlier comments "dangling" and potentially misleading.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@sonarqube-next
Copy link

@asya-vorobeva asya-vorobeva merged commit 560700b into master Mar 13, 2026
14 checks passed
@asya-vorobeva asya-vorobeva deleted the asya/s8491 branch March 13, 2026 11:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants