Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 540
fkerber Avatar asked Dec 21 '22 09:12

fkerber


1 Answers

  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
like image 105
Visu Avatar answered Dec 28 '22 11:12

Visu