Skip to content

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

Open
asya-vorobeva wants to merge 2 commits intomasterfrom
asya/s8491
Open

SONARJAVA-5472 Add S8491: Detect dangling Javadoc comments#5525
asya-vorobeva wants to merge 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

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>
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 👍

@sonarqube-next
Copy link

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