forked from phoedos/pmd
release preps
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@198 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
@ -3,9 +3,9 @@
|
||||
<pomVersion>3</pomVersion>
|
||||
<id>pmd</id>
|
||||
<name>PMD</name>
|
||||
<currentVersion>0.2</currentVersion>
|
||||
<currentVersion>0.3</currentVersion>
|
||||
<organization>
|
||||
<name>Nobody</name>
|
||||
<name>Tom Copeland/David Dixon-Peugh</name>
|
||||
<url>http://pmd.sourceforge.net/</url>
|
||||
<logo>http://sourceforge.net/sflogo.php?group_id=56262&type=5</logo>
|
||||
</organization>
|
||||
@ -23,7 +23,10 @@ PMD scans Java source code and looks for potential problems:
|
||||
<li>Empty catch blocks</li>
|
||||
<li>Empty 'if' statements</li>
|
||||
<li>Empty 'while' statements</li>
|
||||
<li>Classes which could be Singletons</li>
|
||||
<li>Short/long variable and method names</li>
|
||||
<li>'if..else' statements without curly braces</li>
|
||||
<li>A bunch of custom rules for <a href="http://cougaar.org/">Cougaar</a></li>
|
||||
</ul>
|
||||
<p>For a sample result, here's the unused code that PMD found in the <a href="jdk14.HTML">JDK 1.4 source code</a>. Yikes!</p>
|
||||
<p>You can get the current PMD release from <a href="http://sf.net/projects/pmd/">here</a></p>
|
||||
@ -44,8 +47,13 @@ PMD scans Java source code and looks for potential problems:
|
||||
|
||||
<versions>
|
||||
<version>
|
||||
<id>0.1</id>
|
||||
<name>0.1</name>
|
||||
<id>0.3</id>
|
||||
<name>0.3</name>
|
||||
<tag>pmd_release_0_3</tag>
|
||||
</version>
|
||||
<version>
|
||||
<id>dev</id>
|
||||
<name>dev</name>
|
||||
<tag>HEAD</tag>
|
||||
</version>
|
||||
</versions>
|
||||
|
@ -11,13 +11,17 @@
|
||||
<ul>
|
||||
<li>Type run <filename> <report format>, <rule set file>i.e.:</li>
|
||||
<pre>
|
||||
C:\data\pmd\pmd\etc>run c:\data\pmd\pmd\test-data\Unused1.java xml rulesets/unusedcode.xml
|
||||
<pmd>
|
||||
<file>
|
||||
<name>c:\data\pmd\pmd\test-data\Unused1.java</name><ruleviolation><line>5</line>
|
||||
<description>Found unused local variable 'fr'</description></ruleviolation>
|
||||
</file>
|
||||
</pmd>
|
||||
<![CDATA[
|
||||
C:\data\pmd\pmd\etc>run c:\data\pmd\pmd\test-data\Unused1.java xml rulesets/unusedcode.xml
|
||||
<?xml version="1.0"?><pmd>
|
||||
<ruleviolation>
|
||||
<file>c:\data\pmd\pmd\test-data\Unused1.java</file>
|
||||
<line>5</line>
|
||||
<description>Found unused local variable 'fr'</description>
|
||||
</ruleviolation>
|
||||
</pmd>
|
||||
C:\data\pmd\pmd\etc>
|
||||
]]>
|
||||
</pre>
|
||||
<li>Notice that in this case the output is in XML, so you can redirect it to a file and XSLT it or whatever</li>
|
||||
</ul>
|
||||
|
Reference in New Issue
Block a user