PMD-Intellij icon indicating copy to clipboard operation
PMD-Intellij copied to clipboard

Add support for PMD 7, for Kotlin rules

Open jborgers opened this issue 4 years ago • 3 comments

PMD 7 is under development. The advantage of PMD 7 is that it supports Antlr grammers. We use the existing Antlr Kotlin grammer to add support for Kotlin and create Kotlin rules in PMD.

As an IntelliJ user, I want these Kotlin rules, by PMD 7 support in the PMD-Intellij plugin, to become available in IntelliJ.

jborgers avatar Oct 28 '21 11:10 jborgers

There is currently a PMD-7-RC1 available. It is not backward compatible, that is, the xpath expressions used in (custom) rules differ for 6 and 7, so existing rules do not work as is on PMD 7. And migration is not easy.

This is why we developed a separate PMD7(-snapshot) plugin for Sonar and we have a PMD6 plugin in Sonar next to the PMD7 plugin. So, how to support both 6 and 7 rules in the PMD IntelliJ plugin is not clear to me, yet. 

jborgers avatar Apr 07 '23 09:04 jborgers

See also #161

adangel avatar Apr 07 '24 16:04 adangel