The eclipse-pmd plug-in integrates the well-known source code analyzer PMD 5.1.2 into the Eclipse IDE.
Everytime you save your work, eclipse-pmd scans your source code and looks for potential problems like possible bugs and suboptimal, duplicate, dead or overly complicated code.
When eclipse-pmd finds problems it highlights those in your editor so you can fix them right away. Discovered problems are also logged in the Eclipse Problems View.
Where possible, eclipse-pmd offers quick fixes that automatically fix the problems. These quick fixes can be used to fix a single problem or all occurrences in your entire code base.