Hi,

Checkstyle reports contains inactive links to files containing no 
errors, and shows an
error count of "0".

I just added an if statement to check if the value is "0". If true, 
don't generate the link.

St�phane
PS : I checked, and I am quite sure that there is no FAQ entry, or 
property for that !  ;-)
Index: src/dvsl/xdocs/checkstyle.dvsl
===================================================================
RCS file: /home/cvspublic/jakarta-turbine-maven/src/dvsl/xdocs/checkstyle.dvsl,v
retrieving revision 1.2
diff -u -r1.2 checkstyle.dvsl
--- src/dvsl/xdocs/checkstyle.dvsl      27 May 2002 05:32:24 -0000      1.2
+++ src/dvsl/xdocs/checkstyle.dvsl      27 May 2002 19:26:02 -0000
@@ -77,10 +77,12 @@
         #foreach ($file in $node.selectNodes("file"))
           #set ($name = 
$context.toolbox.pathtool.getPackagePath($file.attribute('name')))
           #set ($errorCount = $file.valueOf("count(error)"))
+          #if ($errorCount != "0")
         <tr>
           <td><a href="#$name">$name</a></td>
           <td>$errorCount</td>
         </tr>
+          #end
         #end
       </table>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to