Page MenuHomePhabricator

Support Checkstyle as an output format for lint results.
ClosedPublic

Authored by joshuaspence on May 12 2014, 10:09 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Dec 17, 10:21 AM
Unknown Object (File)
Sun, Dec 15, 7:08 AM
Unknown Object (File)
Sat, Dec 14, 2:36 PM
Unknown Object (File)
Thu, Dec 12, 2:52 AM
Unknown Object (File)
Sat, Dec 7, 7:55 PM
Unknown Object (File)
Fri, Dec 6, 1:39 PM
Unknown Object (File)
Wed, Dec 4, 6:23 AM
Unknown Object (File)
Sat, Nov 30, 1:54 AM
Subscribers

Details

Summary

Fixes T4948. Add a lint renderer which supports outputting the lint results in the Checkstyle XML format.

Test Plan

Ran arc lint --xml and inspected the output.

Diff Detail

Repository
rARC Arcanist
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

joshuaspence retitled this revision from to Support Checkstyle as an output format for lint results..
joshuaspence updated this object.
joshuaspence edited the test plan for this revision. (Show Details)
joshuaspence added a reviewer: epriestley.

This is currently a bit too hacky for my liking, but I wanted to get some initial feedback before I pursue this any further.

joshuaspence edited edge metadata.

Rewrote this to be less of a hack. It probably still needs improvement, but I think this is an improvement.

Although I imagine this may have a large memory footprint when used with arc lint --everything.

Use XMLWriter instead of SimpleXMLElement.

epriestley edited edge metadata.
epriestley added inline comments.
src/lint/renderer/ArcanistLintRenderer.php
13

I'm not so sure about this method name.

This revision is now accepted and ready to land.May 13 2014, 8:20 PM
epriestley updated this revision to Diff 21627.

Closed by commit rARCec3de41684c9 (authored by @joshuaspence, committed by @epriestley).

src/lint/renderer/ArcanistLintRenderer.php
13

Me either.