[pmd-devel] [ pmd-Bugs-1742708 ] Line numbers missing in reports generated with xslt
A source code analyzer
Brought to you by:
adangel,
juansotuyo
From: SourceForge.net <no...@so...> - 2007-06-26 22:42:52
|
Bugs item #1742708, was opened at 2007-06-25 03:37 Message generated for change (Comment added) made by tomcopeland You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=479921&aid=1742708&group_id=56262 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: pmd Group: None >Status: Pending Resolution: None Priority: 5 Private: No Submitted By: Ralf Wagner (ralfwagner) Assigned to: Tom Copeland (tomcopeland) Summary: Line numbers missing in reports generated with xslt Initial Comment: PMD 4.0 RC1 In the html reports the line numbers for the violations are missing. PMD was run on the source with an ant task using the xml formatter. In a second step, the xml reports are transformed with an xslt transformation as described under PMD Ant Task / "Postprocessing the report file with XSLT". The reason for this errors seems to be that the xml format has changed. Old: (PMD 3.9) <violation line="3011" rule=... New: <violation beginline="678" endline="678" begincolumn="41" endcolumn="61" rule=... So, the xslt in the pmd distro etc/xslt/wz-pmd-report.xslt does not find the @line attribute. Quick fix: Use @beginline instead of @line in the reports in the etc/xslt directory. ---------------------------------------------------------------------- >Comment By: Tom Copeland (tomcopeland) Date: 2007-06-26 17:42 Message: Logged In: YES user_id=5159 Originator: NO Fixed in Subversion, thanks for the note! Yours, Tom ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=479921&aid=1742708&group_id=56262 |