PMD is a source code analyzer. It finds common programming flaws like unused variables, empty catch blocks, unnecessary object creation, and so forth. It supports Java, JavaScript, Salesforce.com Apex and Visualforce, PLSQL, Apache Velocity, XML, XSL.
Additionally it includes CPD, the copy-paste-detector. CPD finds duplicated code in Java, C, C++, C#, Groovy, PHP, Ruby, Fortran, JavaScript, PLSQL, Apache Velocity, Scala, Objective C, Matlab, Python, Go, Swift and Salesforce.com Apex and Visualforce.
PMD is participating in Google Summer of Code 2017!

Latest version(s)

Latest version(s)

5.7.0 (20th May 2017)

5.6.1 (29th April 2017)

5.5.7 (29th April 2017)

Get Involved

Get Involved

See How to contribute to PMD and How to build PMD.

Plugins

Recent Announcements

Recent Announcements

Next development version

Next development version

5.8.0-SNAPSHOT

Previous versions

Previous versions