Details
Description
Some PMD rules such as CloneMethodMustImplementCloneable exists in two versions :
- rulesets/typeresolution.xml/CloneMethodMustImplementCloneable
- rulesets/clone.xml/CloneMethodMustImplementCloneable
These two rules are imported into the Sonar database with the same identifier (see lib/sonar-web/db/migrate/003_populate_database.rb, lines 280 and 306), so Sonar only recognize the first implementation of this rule when importing a pmd.xml file, and ignore the second one.
Maybe a different identifier should be used to differentiate them.
We will fix this ticket when upgrading to PMD 4.2.2 (
SONAR-224)SONAR-224)