release preps

git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@198 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
Tom Copeland
2002-07-03 14:46:01 +00:00
parent c653af37a8
commit 0a242488f3
2 changed files with 23 additions and 11 deletions

View File

@ -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&amp;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>

View File

@ -11,13 +11,17 @@
<ul>
<li>Type run &lt;filename&gt; &lt;report format&gt;, &lt;rule set file&gt;i.e.:</li>
<pre>
C:\data\pmd\pmd\etc&gt;run c:\data\pmd\pmd\test-data\Unused1.java xml rulesets/unusedcode.xml
&lt;pmd&gt;
&lt;file&gt;
&lt;name&gt;c:\data\pmd\pmd\test-data\Unused1.java&lt;/name&gt;&lt;ruleviolation&gt;&lt;line&gt;5&lt;/line&gt;
&lt;description&gt;Found unused local variable 'fr'&lt;/description&gt;&lt;/ruleviolation&gt;
&lt;/file&gt;
&lt;/pmd&gt;
<![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>