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: pmd:pmd-jdk14:4.2.3
p

pmd-jdk14

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/
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
Files download
File Operation
pmd-jdk14-4.2.3.jar download
pmd-jdk14-4.2.3.pom download
Apache Maven
<dependency>
  <groupId>pmd</groupId>
  <artifactId>pmd-jdk14</artifactId>
  <version>4.2.3</version>
</dependency>
Gradle Groovy
implementation 'pmd:pmd-jdk14:4.2.3'
Gradle Kotlin
implementation("pmd:pmd-jdk14:4.2.3")
Scala SBT
libraryDependencies += "pmd" % "pmd-jdk14" % "4.2.3"
Groovy Grape
@Grapes(
  @Grab(group='pmd', module='pmd-jdk14', version='4.2.3')
)
Apache Ivy
<dependency org="pmd" name="pmd-jdk14" rev="4.2.3" />
Leiningen
[pmd/pmd-jdk14 "4.2.3"]
Apache Buildr
'pmd:pmd-jdk14:jar:4.2.3'