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.6.0 (22nd April 2017)

5.5.6 (19th April 2017)

5.4.6 (27th March 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.7.0-SNAPSHOT

Previous versions

Previous versions