Invalid XML report: the node "BugInstance" should be a child of "file"
----------------------------------------------------------------------
Key: MFINDBUGS-107
URL: http://jira.codehaus.org/browse/MFINDBUGS-107
Project: Maven 2.x FindBugs Plugin
Issue Type: Bug
Affects Versions: 2.3
Reporter: Simon Brandhof
Attachments: findbugs-xmlformat.patch
The XML generated by the maven plugin has changed between versions 2.0.1 and
2.3.
The nodes 'BugsInstance' should be included in the node 'file' :
{code}
<BugCollection version="1.3.9" threshold="low" effort="min">
<file classname="org.sonar.samples.ClassWithComments">
<BugInstance type="DLS_DEAD_LOCAL_STORE" priority="Normal" category="STYLE"
message="Dead store to i in new org.sonar.samples.ClassWithComments(int)"
lineNumber="12"/>
<BugInstance type="DLS_DEAD_LOCAL_STORE" priority="Normal" category="STYLE"
message="Dead store to j in new org.sonar.samples.ClassWithComments(int)"
lineNumber="12"/>
</file>
</BugCollection>
{code}
but the following is generated :
{code}
<BugCollection version="1.3.9" threshold="low" effort="min">
<file classname="org.sonar.samples.ClassWithComments"/>
<BugInstance type="DLS_DEAD_LOCAL_STORE" priority="Normal" category="STYLE"
message="Dead store to i in new org.sonar.samples.ClassWithComments(int)"
lineNumber="12"/>
<BugInstance type="DLS_DEAD_LOCAL_STORE" priority="Normal" category="STYLE"
message="Dead store to j in new org.sonar.samples.ClassWithComments(int)"
lineNumber="12"/>
</BugCollection>
{code}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email