download everything from here, and you can get an overview of all the rules at the rulesets index page.

PMD is integrated with JDeveloper, Eclipse, JEdit, JBuilder, BlueJ, CodeGuide, NetBeans/Sun Java Studio Enterprise/Creator, IntelliJ IDEA, TextPad, Maven, Ant, Gel, JCreator, and Emacs.

" > mvncenter: net.sourceforge.pmd:pmd:5.3.4
p

pmd

PMD scans Java source code and looks for potential problems like:

  • Possible bugs - empty try/catch/finally/switch statements
  • Dead code - unused local variables, parameters and private methods
  • Suboptimal code - wasteful String/StringBuffer usage
  • Overcomplicated expressions - unnecessary if statements, for loops that could be while loops
  • Duplicate code - copied/pasted code means copied/pasted bugs

You can download everything from here, and you can get an overview of all the rules at the rulesets index page.

PMD is integrated with JDeveloper, Eclipse, JEdit, JBuilder, BlueJ, CodeGuide, NetBeans/Sun Java Studio Enterprise/Creator, IntelliJ IDEA, TextPad, Maven, Ant, Gel, JCreator, and Emacs.

http://pmd.sourceforge.net/
BSD-style
InfoEther
Tom Copeland David Dixon-Peugh Ole-Martin Mork Miguel Griffa Philippe Herlin Jiger Patel Radim Kubacki Tomasz Slota Alan Ezust Nascif Abousalh Neto Allan Caplan Sven Jacob Wouter Zelle Brian Remedios Xavier Le Vourch Ryan Gustafson Johan Nagels Torsten Kleiber Romain Pelisse Andreas Dangel Philip Graf
Files download
File Operation
pmd-5.3.4.pom download
Apache Maven
<dependency>
  <groupId>net.sourceforge.pmd</groupId>
  <artifactId>pmd</artifactId>
  <version>5.3.4</version>
  <type>pom</type>
</dependency>
Gradle Groovy
implementation 'net.sourceforge.pmd:pmd:5.3.4'
Gradle Kotlin
implementation("net.sourceforge.pmd:pmd:5.3.4")
Scala SBT
libraryDependencies += "net.sourceforge.pmd" % "pmd" % "5.3.4"
Groovy Grape
@Grapes(
  @Grab(group='net.sourceforge.pmd', module='pmd', version='5.3.4')
)
Apache Ivy
<dependency org="net.sourceforge.pmd" name="pmd" rev="5.3.4" />
Leiningen
[net.sourceforge.pmd/pmd "5.3.4"]
Apache Buildr
'net.sourceforge.pmd:pmd:jar:5.3.4'