forked from phoedos/pmd
prepping for 0.2 release
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@94 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
@@ -1,13 +1,10 @@
|
||||
??? - 0.2:
|
||||
Added new rules:
|
||||
+IfElseStmtsMustUseBracesRule
|
||||
+EmptyWhileStmtRule
|
||||
June 27 2002 - 0.2:
|
||||
Added new rules: IfElseStmtsMustUseBracesRule, EmptyWhileStmtRule
|
||||
Modified command line interface to accept a rule set
|
||||
Fixed bug in EmptyCatchBlockRule
|
||||
Fixed type in UnnecessaryConversionTemporaryRule
|
||||
Moved Ant task to new package - net.sourceforge.pmd.ant
|
||||
Added new report format - html
|
||||
|
||||
Fixed typo in UnnecessaryConversionTemporaryRule
|
||||
Moved Ant task to the net.sourceforge.pmd.ant package
|
||||
Added new HTML report format
|
||||
|
||||
June 25 2002 - 0.1:
|
||||
Initial release
|
||||
|
@@ -3,7 +3,7 @@
|
||||
<pomVersion>3</pomVersion>
|
||||
<id>pmd</id>
|
||||
<name>PMD</name>
|
||||
<currentVersion>0.1</currentVersion>
|
||||
<currentVersion>0.2</currentVersion>
|
||||
<organization>
|
||||
<name>Nobody</name>
|
||||
<url>http://pmd.sourceforge.net/</url>
|
||||
@@ -21,8 +21,9 @@ PMD scans Java source code and looks for potential problems:
|
||||
<li>Unused private instance variables</li>
|
||||
<li>Unnecessary object creation</li>
|
||||
<li>Empty catch blocks</li>
|
||||
<li>Empty if statements</li>
|
||||
<li>if..else statements without curly braces</li>
|
||||
<li>Empty 'if' statements</li>
|
||||
<li>Empty 'while' statements</li>
|
||||
<li>'if..else' statements without curly braces</li>
|
||||
</ul>
|
||||
<p>For a sample, here are the problems PMD found in the <a href="jdk14.XML">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>
|
||||
|
@@ -37,7 +37,7 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top">format</td>
|
||||
<td valign="top">The report format (xml, text)</td>
|
||||
<td valign="top">The report format (xml, text, html)</td>
|
||||
<td valign="top" align="center">Yes</td>
|
||||
</tr>
|
||||
</table>
|
||||
@@ -47,7 +47,7 @@
|
||||
<source>
|
||||
<![CDATA[
|
||||
<target name="pmd">
|
||||
<taskdef name="pmd" classname="com.infoether.pmd.PMDTask" />
|
||||
<taskdef name="pmd" classname="com.infoether.pmd.ant.PMDTask" />
|
||||
<pmd reportFile="C:\foo.xml" verbose="false" rulesettype="general" format="xml">
|
||||
<fileset dir="C:\j2sdk1.4.0\src\">
|
||||
<include name="**/*.java"/>
|
||||
|
@@ -9,7 +9,7 @@
|
||||
<body>
|
||||
<section name="Running PMD via command line">
|
||||
<ul>
|
||||
<li>Type run <filename> <report format>, i.e.:</li>
|
||||
<li>Type run <filename> <report format>, <rule set>i.e.:</li>
|
||||
<pre>
|
||||
C:\data\pmd\pmd\etc>run c:\data\pmd\pmd\test-data\Unused1.java xml
|
||||
<pmd>
|
||||
@@ -19,7 +19,7 @@
|
||||
</file>
|
||||
</pmd>
|
||||
</pre>
|
||||
<li>Notice that the output is in an XML format, so you can redirect it to a file and process it later 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>
|
||||
</section>
|
||||
<section name="Running PMD via Ant">
|
||||
|
Reference in New Issue
Block a user