Page MenuHomePhabricator

Modularize "arc lint" renderers
ClosedPublic

Authored by epriestley on Sep 25 2017, 9:48 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Mar 22, 2:25 PM
Unknown Object (File)
Mon, Mar 11, 2:23 AM
Unknown Object (File)
Feb 26 2024, 2:36 PM
Unknown Object (File)
Feb 26 2024, 2:29 PM
Unknown Object (File)
Feb 20 2024, 7:09 PM
Unknown Object (File)
Jan 14 2024, 1:11 AM
Unknown Object (File)
Jan 3 2024, 7:29 PM
Unknown Object (File)
Dec 30 2023, 6:09 PM
Subscribers
None

Details

Summary

Ref T12996. arc lint can render in different formats with --output <format>.

Previously, these were a big switch() statement and a bunch of hard-coded stuff.

Modularize them so that that third parties could add new renderers, and this code can be refactored toward parallelizing the lint step.

This has a small behavioral change: we no longer hide "autofix" messages. I'd like to generally simplify the number of amend/autofix flags here, so this edges us toward that slightly.

Test Plan

Ran arc lint with all the --output flags in states with warnings and no warnings, saw sensible-seeming behavior.

Diff Detail

Repository
rARC Arcanist
Lint
Lint Not Applicable
Unit
Tests Not Applicable