Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not all pmd rules are available from sonar-pmd #338

Open
jborgers opened this issue Jun 9, 2022 · 2 comments
Open

Not all pmd rules are available from sonar-pmd #338

jborgers opened this issue Jun 9, 2022 · 2 comments
Assignees

Comments

@jborgers
Copy link
Owner

jborgers commented Jun 9, 2022

sonar-pmd7 rules.xml contains 268 rules
pmd7 contains 281 rules
It seems 13 are missing. Probably more since rules have been removed and combined.

No new rules seem to be added after PMD 5.4.0, 27/10/2015, SONARPMD-54.

@jborgers
Copy link
Owner Author

jborgers commented Jun 9, 2022

Rules.xml need to be updated, differently for pmd6 and pmd7

@jborgers
Copy link
Owner Author

jborgers commented Jun 9, 2022

also cleanup rules, several pmd rules are referenced by two names. A warning is generated. It seems not necessary.
e.g.
[WARNING] The rule GuardLogStatement is referenced multiple times in "pmd7". Only the last rule configuration is used.

@jborgers jborgers changed the title Not all pmd rules are avaliable from sonar-pmd Not all pmd rules are available from sonar-pmd Jan 13, 2023
@jborgers jborgers self-assigned this May 7, 2024
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

No branches or pull requests

1 participant