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:
@ -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>
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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%
|
||||
|
@ -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>
|
||||
|
||||
|
@ -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>
|
||||
|
||||
|
||||
|
@ -12,7 +12,7 @@
|
||||
<li>Type run <filename> <report format>, <rule set file>i.e.:</li>
|
||||
<br></br>
|
||||
<pre>
|
||||
C:\tmp\pmd-0.7\pmd\etc>run c:\data\pmd\pmd\test-data\Unused1.java xml rulesets/unusedcode.xml
|
||||
C:\tmp\pmd-0.8\pmd\etc>run c:\data\pmd\pmd\test-data\Unused1.java xml rulesets/unusedcode.xml
|
||||
<?xml version="1.0"?><pmd>
|
||||
<file name="c:\data\pmd\pmd\test-data\Unused1.java">
|
||||
<violation line="5" rule="UnusedLocalVariable">
|
||||
@ -20,7 +20,7 @@ Avoid unused local variables such as 'fr'
|
||||
</violation>
|
||||
</file></pmd>
|
||||
|
||||
C:\tmp\pmd-0.7\pmd\etc>
|
||||
C:\tmp\pmd-0.8\pmd\etc>
|
||||
</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>
|
||||
<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>
|
||||
|
Reference in New Issue
Block a user