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