preps for release

git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@558 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
Tom Copeland
2002-07-30 20:10:59 +00:00
parent 58a3b67d73
commit f5f5fa3732
7 changed files with 28 additions and 26 deletions

View File

@ -7,6 +7,7 @@
<property name="test-data" value="test-data\"/>
<property name="regress" value="regress\"/>
<property name="reports" value="reports\"/>
<property name="version" value="0.8"/>
<target name="delete">
<delete dir="${build}"/>
@ -31,16 +32,17 @@
<include name="*.properties"/>
</fileset>
</copy>
<jar jarfile="${lib}\pmd-0.7.jar" basedir="${build}" excludes="test/**/*.class"/>
<jar jarfile="${lib}\pmd-${version}.jar" basedir="${build}" excludes="test/**/*.class"/>
</target>
<target name="pmd">
<taskdef name="pmd" classname="net.sourceforge.pmd.ant.PMDTask"/>
<pmd reportFile="c:\jdk.html" rulesetfiles="rulesets/newrules.xml" format="html">
<!--<fileset dir="c:\data\pmd\pmd\src">-->
<fileset dir="c:\j2sdk1.4.0_01\src\com\sun\corba\se">
<pmd reportFile="c:\pmd.html" rulesetfiles="rulesets/basic.xml,rulesets/unusedcode.xml,rulesets/imports.xml,rulesets/design.xml" format="html">
<fileset dir="c:\data\pmd\pmd\src">
<!-- <fileset dir="c:\j2sdk1.4.0_01\src\com\sun\corba\se">-->
<!--<fileset dir="c:\j2sdk1.4.0_01\src\">-->
<include name="**/*.java"/>
<exclude name="**/ast**/"/>
</fileset>
</pmd>
</target>

View File

@ -1,6 +1,7 @@
???? 2002 - 0.8:
Added new rules: UnusedFormalParameterRule
July 30 2002 - 0.8:
Added new rule: UnusedFormalParameterRule
Fixed bug 588083 - ForLoopsNeedBraces rule correctly handles a variety of for statement formats
Added prototype of the copy and paste detector
July 25 2002 - 0.7:
Added new rules: UnusedPrivateMethodRule, WhileLoopsMustUseBracesRule, ForLoopsMustUseBracesRule, LooseCouplingRule

View File

@ -3,7 +3,6 @@ update the release date in the changelog
move rules from "newrules.xml" into a real ruleset file
update jar task to reflect pmd-0.8
update xdocs/running.xml to reflect pmd-0.8
update docs to mention GUI if it's in a presentable state
update release number in project.xml
set ANT_HOME=c:\ant

View File

@ -1,5 +1,5 @@
@echo off
set CLASSPATH=../lib/pmd-0.7.jar
set CLASSPATH=../lib/pmd-0.8.jar
set FILE=%1%
set FORMAT=%2%
set RULESETFILE=%3%

View File

@ -5,22 +5,7 @@
These are new ones for the next release
</description>
<rule name="UnusedFormalParameter"
message="Avoid unused formal parameters such as ''{0}''"
class="net.sourceforge.pmd.rules.UnusedFormalParameterRule">
<description>
Avoid passing parameters to methods and then not using those parameters.
</description>
<example>
<![CDATA[
public class Foo {
private void bar(String howdy) {
// howdy is not used
}
]]>
</example>
</rule>
</ruleset>

View File

@ -64,7 +64,22 @@ public class Something {
</rule>
<rule name="UnusedFormalParameter"
message="Avoid unused formal parameters such as ''{0}''"
class="net.sourceforge.pmd.rules.UnusedFormalParameterRule">
<description>
Avoid passing parameters to methods and then not using those parameters.
</description>
<example>
<![CDATA[
public class Foo {
private void bar(String howdy) {
// howdy is not used
}
]]>
</example>
</rule>
</ruleset>

View File

@ -12,7 +12,7 @@
<li>Type run &lt;filename&gt; &lt;report format&gt;, &lt;rule set file&gt;i.e.:</li>
<br></br>
<pre>
C:\tmp\pmd-0.7\pmd\etc&gt;run c:\data\pmd\pmd\test-data\Unused1.java xml rulesets/unusedcode.xml
C:\tmp\pmd-0.8\pmd\etc&gt;run c:\data\pmd\pmd\test-data\Unused1.java xml rulesets/unusedcode.xml
&lt;?xml version="1.0"?&gt;&lt;pmd&gt;
&lt;file name="c:\data\pmd\pmd\test-data\Unused1.java"&gt;
&lt;violation line="5" rule="UnusedLocalVariable"&gt;
@ -20,7 +20,7 @@ Avoid unused local variables such as 'fr'
&lt;/violation&gt;
&lt;/file&gt;&lt;/pmd&gt;
C:\tmp\pmd-0.7\pmd\etc&gt;
C:\tmp\pmd-0.8\pmd\etc&gt;
</pre>
<br></br>
<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>
@ -29,7 +29,7 @@ C:\tmp\pmd-0.7\pmd\etc&gt;
<section name="Running PMD via Ant">
<ul>
<li>Add a new Ant target to your build file - <a href="ant-task.html">here's</a> some examples.</li>
<li>Make sure the pmd-0.7.jar file is on your classpath.</li>
<li>Make sure the pmd-0.8.jar file is on your classpath.</li>
<li>Run Ant like you normally do.</li>
</ul>
</section>