This article describes how to install and use the PMD plugin in Eclipse.
There are several ways to install Eclipse Checkstyle Plugin.
1. Via Update site
In Eclipse (Help, Install New software ...)
Select to download the PMD Eclipse plugin.
2, through the offline plug-in package
Offline Version: ()
Setting PMD on Windows->preferences
Right-click the project and select Pmd->check code with PMD.
To run a duplicate code detector, right-click the project node and select Pmd->find suspect cut and paste. The report will be placed in a file named Cpd-report.txt under the reports directory.
https://waylau.com/use-pmd-for-eclipse/(the above content is transferred from this article)
Eclipse-java Code specification and quality check plugin-PMD