From 62a1ae0312a648052d76c504742998d9829696d0 Mon Sep 17 00:00:00 2001 From: Tom Copeland Date: Wed, 29 Jun 2005 15:03:23 +0000 Subject: [PATCH] Fixed typo, added docs for Wouter's new XSLT git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@3631 51baf565-9d33-0410-a72c-fc3788e3496d --- pmd/etc/changelog.txt | 1 + pmd/rulesets/sunsecure.xml | 2 +- pmd/xdocs/ant-task.xml | 19 +++++++++++++++++++ pmd/xdocs/credits.xml | 2 +- 4 files changed, 22 insertions(+), 2 deletions(-) diff --git a/pmd/etc/changelog.txt b/pmd/etc/changelog.txt index ab67df1852..c105300f01 100644 --- a/pmd/etc/changelog.txt +++ b/pmd/etc/changelog.txt @@ -2,6 +2,7 @@ Implemented RFE 1220171 - rule definitions can now contain a link to an external URL for more information on that rule - for example, a link to the rule's web page. Thanks to Wouter Zelle for designing and implementing this! Fixed bug 1226858 - JUnitAssertionsShouldIncludeMessage now checks calls to assertFalse. Fixed bug 1227001 - AvoidCallingFinalize no longer flags calls to finalize() within finalizers. +Fixed bug 1229755 - Fixed typo in ArrayIsStoredDirectly description. Fixed a bug in RuleSetFactory that missed some override cases; thx to Wouter Zelle for the report and a fix. Added some new XSLT scripts that create nifty HTML output; thanks to Wouter Zelle for the code. Improved UseCorrectExceptionLogging; thx to Wouter Zelle for the new XPath. diff --git a/pmd/rulesets/sunsecure.xml b/pmd/rulesets/sunsecure.xml index a5f4645270..a93d6585be 100644 --- a/pmd/rulesets/sunsecure.xml +++ b/pmd/rulesets/sunsecure.xml @@ -32,7 +32,7 @@ These rules check the security guidelines from Sun, published at http://java.sun message="A user given array is stored directly" class="net.sourceforge.pmd.rules.sunsecure.ArrayIsStoredDirectly"> - Constructors and methods receiving arrays shuold clone objects and store the copy. + Constructors and methods receiving arrays should clone objects and store the copy. This prevents that future changes from the user affect the internal functionallity. 3 diff --git a/pmd/xdocs/ant-task.xml b/pmd/xdocs/ant-task.xml index 51120122b1..64e9156134 100644 --- a/pmd/xdocs/ant-task.xml +++ b/pmd/xdocs/ant-task.xml @@ -78,6 +78,25 @@ + + +

Several folks (most recently, Wouter Zelle) have written XSLT scripts + which you can use to transform the XML report into nifty HTML. To do this, + make sure you use the XML formatter in the PMD task invocation, i.e.: +

+ + +]]> + +

Then, after the end of the PMD task, do this:

+ + +]]> + +
+

Running one ruleset to produce a HTML report

diff --git a/pmd/xdocs/credits.xml b/pmd/xdocs/credits.xml index a4e9323d64..92c23a2faf 100644 --- a/pmd/xdocs/credits.xml +++ b/pmd/xdocs/credits.xml @@ -43,6 +43,7 @@