From f5f5fa3732ea539da018b3838069f7b55ce6f2f1 Mon Sep 17 00:00:00 2001 From: Tom Copeland Date: Tue, 30 Jul 2002 20:10:59 +0000 Subject: [PATCH] preps for release git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@558 51baf565-9d33-0410-a72c-fc3788e3496d --- pmd/etc/build.xml | 10 ++++++---- pmd/etc/changelog.txt | 5 +++-- pmd/etc/doing_the_next_pmd_release.txt | 1 - pmd/etc/run.bat | 2 +- pmd/rulesets/newrules.xml | 15 --------------- pmd/rulesets/unusedcode.xml | 15 +++++++++++++++ pmd/xdocs/running.xml | 6 +++--- 7 files changed, 28 insertions(+), 26 deletions(-) diff --git a/pmd/etc/build.xml b/pmd/etc/build.xml index 33504ff06f..8f6adca799 100644 --- a/pmd/etc/build.xml +++ b/pmd/etc/build.xml @@ -7,6 +7,7 @@ + @@ -31,16 +32,17 @@ - + - - - + + + + diff --git a/pmd/etc/changelog.txt b/pmd/etc/changelog.txt index d5ac56e395..1b84de6a76 100644 --- a/pmd/etc/changelog.txt +++ b/pmd/etc/changelog.txt @@ -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 diff --git a/pmd/etc/doing_the_next_pmd_release.txt b/pmd/etc/doing_the_next_pmd_release.txt index 66f75a8a8d..cbfd1c30e7 100644 --- a/pmd/etc/doing_the_next_pmd_release.txt +++ b/pmd/etc/doing_the_next_pmd_release.txt @@ -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 diff --git a/pmd/etc/run.bat b/pmd/etc/run.bat index 8ab7293a50..6c07b0e37d 100755 --- a/pmd/etc/run.bat +++ b/pmd/etc/run.bat @@ -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% diff --git a/pmd/rulesets/newrules.xml b/pmd/rulesets/newrules.xml index 4ad4f4625b..330374969f 100644 --- a/pmd/rulesets/newrules.xml +++ b/pmd/rulesets/newrules.xml @@ -5,22 +5,7 @@ These are new ones for the next release - - -Avoid passing parameters to methods and then not using those parameters. - - - - - diff --git a/pmd/rulesets/unusedcode.xml b/pmd/rulesets/unusedcode.xml index baf2f324de..ac2d78b76e 100644 --- a/pmd/rulesets/unusedcode.xml +++ b/pmd/rulesets/unusedcode.xml @@ -64,7 +64,22 @@ public class Something { + + +Avoid passing parameters to methods and then not using those parameters. + + + + + diff --git a/pmd/xdocs/running.xml b/pmd/xdocs/running.xml index 426d0795db..7e76b892f0 100644 --- a/pmd/xdocs/running.xml +++ b/pmd/xdocs/running.xml @@ -12,7 +12,7 @@
  • Type run <filename> <report format>, <rule set file>i.e.:


  • -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>
     


  • Notice that in this case the output is in XML, so you can redirect it to a file and XSLT it or whatever
  • @@ -29,7 +29,7 @@ C:\tmp\pmd-0.7\pmd\etc>
    • Add a new Ant target to your build file - here's some examples.
    • -
    • Make sure the pmd-0.7.jar file is on your classpath.
    • +
    • Make sure the pmd-0.8.jar file is on your classpath.
    • Run Ant like you normally do.