jborgers / PMD-jPinpoint-rules

PMD rule set for responsible Java and Kotlin coding: performance, sustainability, multi-threading, data mixup and more.
Apache License 2.0
41 stars 10 forks source link

Migrate java rules to pmd 7.x.x #309

Open emouty opened 3 months ago

emouty commented 3 months ago

Because of breaking changes introduced with pmd 7.x.x, the java ruleset can't be used with this new version.

The main error I've seen is from the package migration of net.sourceforge.pmd.lang.rule.XPathRule to net.sourceforge.pmd.lang.rule.xpath.XPathRule, but there could be other errors.

It could be nice to migrate the rulesets to be compatible with this new major version

jborgers commented 3 months ago

Hi, thanks for reporting. We are aware of it. This needs quite some time to migrate the rules to 7. We are figuring out how to do this.

jborgers commented 1 month ago

The AST provided by PMD7 is incompatible with the one of PMD6. It actually has a lot of structural changes. The xpath expression of each rule needs to be migrated.

Working on branch pmd7-upgrade-7.2.0