Search code examples
eclipseeclipse-plugincode-analysispmd

PMD - Eclipse plugin - Not testing against any rules


I'm using Eclipse Juno (Service Release 1) and installed the latest version of the PMD plugin from http://sourceforge.net/projects/pmd/files/pmd-eclipse/update-site/ I can configure the plugin and select which rules should be executed but unfortunately, no rules are checked. If I click on "Check code" in the PMD submenu, a dialog pops up saying "Checking with 0 out of xxx rules"

What has to be configured and where to enable the functionality? On the console PMD is running fine.


Solution

    1. Preferences -> PMD (please do not search PMD on search bar then you can not find the rule configuration try to find by scrolling each preference).
    2. Select the required rules.
    3. Click apply & OK (It will re-build the rules)
    4. Now right click on the code and select PMD-> code Check