Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: dashboard
-
Labels:None
-
Environment:Maven version: 2.0.8
Java version: 1.4.2
OS name: "windows xp" version: "5.1" arch: "x86" Family: "windows"
-
Complexity:Intermediate
-
Number of attachments :
Description
I found that the number of errors per checkstyle categories (element <checkstyleerror>) of the children is incorrect in the dashboard-report.xml file(Parent dashboard report) .
For example, you have a parent project and two children: A and B. Now child A has 10 errors of category1 and child B has 16 errors of category1. The parent should have in total 26 errors of category1 but the parent dashboard displays 26 errors of category1 for child B instead of 16.
In the dashboard report of children:
child A:
<module> < org.codehaus.mojo.dashboard.report.plugin.beans.CheckstyleReportBean> <errors> <checkstyleerror> <category>category1</category> <nberror>10</nberror> </checkstyleerror> </errors> < org.codehaus.mojo.dashboard.report.plugin.beans.CheckstyleReportBean> </module>
child B:
<module> < org.codehaus.mojo.dashboard.report.plugin.beans.CheckstyleReportBean> <errors> <checkstyleerror> <category>category1</category> <nberror>16</nberror> </checkstyleerror> </errors> < org.codehaus.mojo.dashboard.report.plugin.beans.CheckstyleReportBean> </module>
In the Parent dashboard report :
parent (contains Child A and Child B):
***********************************child A******************************************* <module> < org.codehaus.mojo.dashboard.report.plugin.beans.CheckstyleReportBean> <errors> <checkstyleerror> <category>category1</category> <nberror>10</nberror> </checkstyleerror> </errors> < org.codehaus.mojo.dashboard.report.plugin.beans.CheckstyleReportBean> </module> ***********************************child B******************************************* <module> < org.codehaus.mojo.dashboard.report.plugin.beans.CheckstyleReportBean> <errors> <checkstyleerror> <category>category1</category> <nberror>26</nberror> </checkstyleerror> </errors> < org.codehaus.mojo.dashboard.report.plugin.beans.CheckstyleReportBean> </module> ***********************************parent******************************************* <report> < org.codehaus.mojo.dashboard.report.plugin.beans.CheckstyleReportBean> <errors> <checkstyleerror> <category>category1</category> <nberror>26</nberror> </checkstyleerror> </errors> < org.codehaus.mojo.dashboard.report.plugin.beans.CheckstyleReportBean> </report>
Find attached the sample dashboard-report.xml .
The error according to me is with the method addAllError( List errorsList ) of the CheckstyleReportBean.java file.
Could you give as attachment a sample project with your checkstyle xml file ?
Best regards
David Vicente