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, 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.
PMD is participating in Google Summer of Code 2017!

Latest version(s)

Latest version(s)

5.5.4 (25th February 2017)

5.4.5 (25th February 2017)

5.3.8 (4th November 2016)

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.6.0-SNAPSHOT

Previous versions

Previous versions