April 2015
Intermediate to advanced
272 pages
4h 59m
English
PMD is a source code analyzer. It finds common programming flaws such as unused variables, empty catch blocks, and unnecessary object creation. It also includes the Copy/Paste Detector (CPD) that finds duplicated code.
Use the following steps to run PMD on a Maven project:
project-with-violations).mvn pmd:pmd pmd:cpd
[INFO] --- maven-pmd-plugin:3.2:pmd (default-cli) @ project-with-violations --- [WARNING] Unable to locate Source XRef to link to – DISABLED [INFO] --- maven-pmd-plugin:3.2:cpd (default-cli) @ project-with-violations --- [WARNING] Unable to locate Source XRef ...
Read now
Unlock full access