Jar examples for p:pmd
<p>PMD scans Java source code and looks for potential problems like:</p> <ul> <li>Possible bugs - empty try/catch/finally/switch statements</li> <li>Dead code - unused local variables, parameters and private methods</li> <li>Suboptimal code - wasteful String/StringBuffer usage</li> <li>Overcomplicated expressions - unnecessary if statements, for loops that could be while loops</li> <li>Duplicate code - copied/pasted code means copied/pasted bugs</li> </ul> <p>You can <b><a href="http://sourceforge.net/project/showfiles.php?group_id=56262">download everything from here</a></b>, and you can get an overview of all the rules at the <a href="rules/index.html">rulesets index</a> page.</p> <p>PMD is <a href="integrations.html">integrated</a> with JDeveloper, Eclipse, JEdit, JBuilder, BlueJ, CodeGuide, NetBeans/Sun Java Studio Enterprise/Creator, IntelliJ IDEA, TextPad, Maven, Ant, Gel, JCreator, and Emacs.</p>
You can download jar file pmd 5.1.2 in this page.
BSD-style
You can use the following script to add pmd-5.1.2.jar to your project.
<dependency> <groupId>net.sourceforge.pmd</groupId> <artifactId>pmd</artifactId> <version>5.1.2</version> </dependency>
compile group: 'net.sourceforge.pmd', name: 'pmd', version: '5.1.2'
libraryDependencies += "net.sourceforge.pmd" % "pmd" % "5.1.2"
<dependency org="net.sourceforge.pmd" name="pmd" rev="5.1.2"/>
@Grapes(@Grab(group='net.sourceforge.pmd', module='pmd', version='5.1.2'))
'net.sourceforge.pmd:pmd:jar:5.1.2'
Click the following link to download the jar file.
pmd-5.1.2-javadoc.jar