Check code quality with PMD

Integrating PMD plugin on STS (subclipse) /Eclipse

1. Open STS  -> click on Help


2. Click ->Install New software



3. Click Add Button and screen blow is dispalyed
Name : PMDplugin
Location: http://sourceforge.net/projects/pmd/files/pmd-eclipse/update-site/

4. Check on PMD for Eclipse 3.

5. Click -> Next

6. Agree the agreement and click -> Finish


7. Wait for Eclipse to download the required jar files, then click Install
8. Restart the workbench. This will load the PMD plugin.
9. Navigate to Window | Show View | Other...

10. Select PMD |select -> Violations overview


Opearating  PMD in STS  (How to usePMD)
1. In the Package Explorer right-click on Project and select PMD | Check Code With PMD

2. PMD Violations view notice a list of violations



No comments: