Error in checkstyle contrib checkstyle-noframes-sorted.xsl
Xavier Outhier <[email protected]>
| Newsgroups | gmane.comp.java.audit.checkstyle.user |
|---|---|
| Message-ID | <[email protected]> |
Hi all,
I've downloaded Checkstyle 4.3.
I've found an error in checkstyle-noframes-sorted.xsl in contrib dir.
The problem is that in the output file, there are (at least with my
configaration) several <file> tag (indeed 2 per java file) and that the
merge for counting the <error> tags doesn't work.
Here is the fix:
replace
<xsl:variable name="errorCount" select="error"/>
with
<xsl:variable name="errorCount"
select="count(key('files', @name)/error)"/>
in template <xsl:template match="checkstyle" mode="filelist">.
There is a similar but that apply for all sections: summary (twice more
files),
files (no merge but correct) and individual (no merge but correct). Sorry
I'm not able rapidley to find a fix for it!
Cheers,
Xavier.
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV