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
F14095805: D9083.diff
Mon, Nov 25, 11:48 PM
Unknown Object (File)
Wed, Nov 20, 4:54 AM
Unknown Object (File)
Sun, Nov 17, 4:06 PM
Unknown Object (File)
Thu, Nov 14, 6:28 AM
Unknown Object (File)
Sat, Nov 9, 4:43 PM
Unknown Object (File)
Oct 23 2024, 2:05 PM
Unknown Object (File)
Oct 23 2024, 2:01 PM
Unknown Object (File)
Oct 23 2024, 10:33 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.