Native checkstyle xml output
I'm currently using a perl script to get the results in xml format. The option for native xml output would be nice.
Comments (6)
-
-
- changed status to invalid
please reopen if I've missed something!
-
reporter Well I guess what I'm actually looking for in that case is checkstyle style xml output. It's actually pretty close probably won't be a bunch of work. Is there anything now that relies on the particulars of the vera xml output? Vera is missing the xml header and some info about severity.
vera++: <vera> <file name="./file.cpp"> <report rule="L004" line="14">![CDATA[line is longer than 100 characters]]</report> <report rule="T012" line="74">![CDATA[negation operator used in its short form]]</report> <report rule="T019" line="159">![CDATA[full block {} expected in the control structure]]</report> <report rule="T019" line="162">![CDATA[full block {} expected in the control structure]]</report> <report rule="L004" line="335">![CDATA[line is longer than 100 characters]]</report> <report rule="L004" line="336">![CDATA[line is longer than 100 characters]]</report> <report rule="L004" line="372">![CDATA[line is longer than 100 characters]]</report> <report rule="T019" line="378">![CDATA[full block {} expected in the control structure]]</report> <report rule="T012" line="387">![CDATA[negation operator used in its short form]]</report> </file> </vera>
checkstyle: <?xml version="1.0" encoding="UTF-8"?> <checkstyle version="5.0"> <file name="./file.cpp"> <error line="14" severity="warning" message="line is longer than 100 characters" source="L004"/> <error line="74" severity="warning" message="negation operator used in its short form" source="T012"/> <error line="159" severity="warning" message="full block {} expected in the control structure" source="T019"/> <error line="162" severity="warning" message="full block {} expected in the control structure" source="T019"/> <error line="335" severity="warning" message="line is longer than 100 characters" source="L004"/> <error line="336" severity="warning" message="line is longer than 100 characters" source="L004"/> <error line="372" severity="warning" message="line is longer than 100 characters" source="L004"/> <error line="378" severity="warning" message="full block {} expected in the control structure" source="T019"/> <error line="387" severity="warning" message="negation operator used in its short form" source="T012"/> </file> </checkstyle>
-
- changed status to open
ok so I guess the ticket should be about producing a checkstyle compatible xml output. A new option should by added to implement that feature.
The lack of header with --xml-report is definitely a bug.
-
- changed title to Native checkstyle xml output
-
- changed status to resolved
add checkstyle report - fix
#5→ <<cset 2aec20dd5396>>
- Log in to comment
I think vera++ already has a option for that:
-xmlreport produce report in the XML format