From 7704b91548f551ac2c2cb1fe0a3ce9f26322838f Mon Sep 17 00:00:00 2001
From: "PMD CI (pmd-bot)"
This section lists the most important changes from the last release candidate. The remaining section describes the complete release notes for 7.0.0.
+Thanks to @mohan-chinnappan-n a new CPD report format has been added which features a data table. +It uses an XSLT stylesheet to convert CPD’s XML format into HTML.
+ +See the example report.
+This PMD release ships a new version of the pmd-designer. For the changes, see PMD Designer Changelog.
+Thanks to @mohan-chinnappan-n a new CPD report format has been added which features a data table. +It uses an XSLT stylesheet to convert CPD’s XML format into HTML.
+ +See the example report.
+Note that this is just a concise listing of the highlight.
@@ -2281,6 +2296,7 @@ of the changes listed here, see Detailed R
This PMD release ships a new version of the pmd-designer. For the changes, see PMD Designer Changelog.
+Thanks to @mohan-chinnappan-n a new CPD report format has been added which features a data table. +It uses an XSLT stylesheet to convert CPD’s XML format into HTML.
+ +See the example report.
+<xslt in="cpd.xml" style="etc/xslt/cpdhtml.xslt" out="cpd.html" />
See section “xslt” in CPD Report Formats for more examples.
+CPD also comes with a simple GUI. You can start it through the unified CLI interface provided in the bin
folder:
This format uses XML to output the duplications in a more structured format.
+This format uses XML to output the duplications in a more structured format. +The XML format can then further be processed using XSLT transformations. See section xslt for examples.
Example:
@@ -1816,6 +1817,41 @@ is shown in the console. You can then click on the filenames to jump to the sour /home/pmd/source/pmd-core/src/test/java/net/sourceforge/pmd/lang/rule/xpath/JaxenXPathRuleQueryTest.java(110): Between lines 110 and 126 +This is not a direct report format. But you can use xml
to generate an XML report and then use one of the following
+XSLT stylesheets to convert the report into html. Or you can write your own stylesheet.
You can either use Ant’s XSLT task or use any other (CLI) xslt processor,
+e.g. xalan
(see https://xalan.apache.org/).
This stylesheet is available in the sources or from GitHub at: https://raw.githubusercontent.com/pmd/pmd/master/pmd-core/etc/xslt/cpdhtml.xslt.
+ +xalan -in cpd-report-sample.xml -xsl cpdhtml.xslt -out cpd-report-sample-cpdhtml.html
+
This stylesheet by default only consideres duplications longer than 30 lines. You can change the default value with
+the param lines
:
xalan -in cpd-report-sample.xml -xsl cpdhtml.xslt -out cpd-report-sample-cpdhtml.html -param lines 10
+
This stylesheet is available in the sources or from GitHub at: https://raw.githubusercontent.com/pmd/pmd/master/pmd-core/etc/xslt/cpdhtml-v2.xslt.
+ +xalan -in pmd-core-cpd-report.xml -xsl etc/xslt/cpdhtml-v2.xslt -out pmd-core-cpd-report-v2.html
+
It requires javascript enabled and uses Bootstrap, +jQuery, and DataTables.
+