Wednesday, January 28, 2015

PMD in Eclipse

Install

1.       In Eclipse, click on Help -> Install New Software...
2.       Click on Add.. Enter the following:
3.       Name: PMD for Eclipse Update Site
5.       You should see PMD for Eclipse 3. Select the checkbox next to it and click Next >
Usage
  1. Open new Perspective > Choose PMD
  2.  Open any file and right click > PMD > Check code with PMD
    Violation outline will list out all of the warnings.
    Navigate to the location of the code by double clicking on the warning.
Import Rule

1.       Go to Preferences > PMD > Rules Configuration
2.       Hit 'Clear All' to remove all the default rules.
3.       Import your rule file and click Ok

No comments:

Post a Comment