1.
In Eclipse, click on Help -> Install New
Software...
2.
Click on Add.. Enter the following:
3.
Name: PMD for Eclipse Update Site
4.
URL: https://sourceforge.net/projects/pmd/files/pmd-eclipse/update-site/
and click OK.
5.
You should see PMD for Eclipse 3. Select the
checkbox next to it and click Next >
Usage- Open new Perspective > Choose PMD
- 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.
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