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.0.5
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
文件下载
文件名 操作
pmd-5.0.5.jar 下载
pmd-5.0.5.pom 下载
pmd-5.0.5-sources.jar 下载
Apache Maven
<dependency>
  <groupId>net.sourceforge.pmd</groupId>
  <artifactId>pmd</artifactId>
  <version>5.0.5</version>
</dependency>
Gradle Groovy
implementation 'net.sourceforge.pmd:pmd:5.0.5'
Gradle Kotlin
implementation("net.sourceforge.pmd:pmd:5.0.5")
Scala SBT
libraryDependencies += "net.sourceforge.pmd" % "pmd" % "5.0.5"
Groovy Grape
@Grapes(
  @Grab(group='net.sourceforge.pmd', module='pmd', version='5.0.5')
)
Apache Ivy
<dependency org="net.sourceforge.pmd" name="pmd" rev="5.0.5" />
Leiningen
[net.sourceforge.pmd/pmd "5.0.5"]
Apache Buildr
'net.sourceforge.pmd:pmd:jar:5.0.5'