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>
|
<pomVersion>3</pomVersion>
|
||||||
<id>pmd</id>
|
<id>pmd</id>
|
||||||
<name>PMD</name>
|
<name>PMD</name>
|
||||||
<currentVersion>0.2</currentVersion>
|
<currentVersion>0.3</currentVersion>
|
||||||
<organization>
|
<organization>
|
||||||
<name>Nobody</name>
|
<name>Tom Copeland/David Dixon-Peugh</name>
|
||||||
<url>http://pmd.sourceforge.net/</url>
|
<url>http://pmd.sourceforge.net/</url>
|
||||||
<logo>http://sourceforge.net/sflogo.php?group_id=56262&type=5</logo>
|
<logo>http://sourceforge.net/sflogo.php?group_id=56262&type=5</logo>
|
||||||
</organization>
|
</organization>
|
||||||
@ -23,7 +23,10 @@ PMD scans Java source code and looks for potential problems:
|
|||||||
<li>Empty catch blocks</li>
|
<li>Empty catch blocks</li>
|
||||||
<li>Empty 'if' statements</li>
|
<li>Empty 'if' statements</li>
|
||||||
<li>Empty 'while' 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>'if..else' statements without curly braces</li>
|
||||||
|
<li>A bunch of custom rules for <a href="http://cougaar.org/">Cougaar</a></li>
|
||||||
</ul>
|
</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>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>
|
<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>
|
<versions>
|
||||||
<version>
|
<version>
|
||||||
<id>0.1</id>
|
<id>0.3</id>
|
||||||
<name>0.1</name>
|
<name>0.3</name>
|
||||||
|
<tag>pmd_release_0_3</tag>
|
||||||
|
</version>
|
||||||
|
<version>
|
||||||
|
<id>dev</id>
|
||||||
|
<name>dev</name>
|
||||||
<tag>HEAD</tag>
|
<tag>HEAD</tag>
|
||||||
</version>
|
</version>
|
||||||
</versions>
|
</versions>
|
||||||
|
@ -11,13 +11,17 @@
|
|||||||
<ul>
|
<ul>
|
||||||
<li>Type run <filename> <report format>, <rule set file>i.e.:</li>
|
<li>Type run <filename> <report format>, <rule set file>i.e.:</li>
|
||||||
<pre>
|
<pre>
|
||||||
C:\data\pmd\pmd\etc>run c:\data\pmd\pmd\test-data\Unused1.java xml rulesets/unusedcode.xml
|
<![CDATA[
|
||||||
<pmd>
|
C:\data\pmd\pmd\etc>run c:\data\pmd\pmd\test-data\Unused1.java xml rulesets/unusedcode.xml
|
||||||
<file>
|
<?xml version="1.0"?><pmd>
|
||||||
<name>c:\data\pmd\pmd\test-data\Unused1.java</name><ruleviolation><line>5</line>
|
<ruleviolation>
|
||||||
<description>Found unused local variable 'fr'</description></ruleviolation>
|
<file>c:\data\pmd\pmd\test-data\Unused1.java</file>
|
||||||
</file>
|
<line>5</line>
|
||||||
</pmd>
|
<description>Found unused local variable 'fr'</description>
|
||||||
|
</ruleviolation>
|
||||||
|
</pmd>
|
||||||
|
C:\data\pmd\pmd\etc>
|
||||||
|
]]>
|
||||||
</pre>
|
</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>
|
<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>
|
</ul>
|
||||||
|
Reference in New Issue
Block a user