]> khamidou — GitHub mirrors - arcanist.git/commit
Allow `arc lint --output json --apply-patches`
authorvrana <jakubv@fb.com>
Sat, 11 Feb 2012 05:35:12 +0000 (21:35 -0800)
committervrana <jakubv@fb.com>
Sat, 11 Feb 2012 16:49:01 +0000 (08:49 -0800)
commite8ca66ead4ed73a8552c11dc66ab744e61e39f8f
treeea57ff8c89752498a742c7c30c43fd0d009ab156
parent8cb5292edf22f84154f541252cf2568fe583316b
Allow `arc lint --output json --apply-patches`

Summary:
I want to use JSON which allows me to automatically open the files in editor.
I also want to apply patches, especially those modifying __init__.php.
I see no reason why these options should be mutually exclusive.

Also output nothing for okay result which is more standard and better parsable.

Test Plan:
arc lint --output json
arc lint --output json --never-apply-patches # same as above
arc lint --output json --apply-patches

Reviewers: aran, epriestley

Reviewed By: epriestley

CC: aran, epriestley
Differential Revision: https://secure.phabricator.com/D1599
src/lint/renderer/ArcanistLintJSONRenderer.php
src/workflow/lint/ArcanistLintWorkflow.php