Sonar-PMD is a plugin that provides coding rules from PMD.
|Max. supported Java Version||1.7||1.8||1.8||11|
|Min. SonarQube Version||4.5.4||4.5.4||6.6||6.6|
A majority of the PMD rules have been rewritten in the Java plugin. Rewritten rules are marked "Deprecated" in the PMD plugin, but a concise summary of replaced rules is available.
In the quality profile, activate some rules from PMD and run an analysis on your project. Set the sonar.java.source property to tell PMD which version of Java your source code complies to. The default value is 1.6.
PMD tool provides some rules that can check the code of JUnit tests. Please note that these rules (and only these rules) will be applied only on the test files of your project.
Licensed under the GNU Lesser General Public License, Version 3.0