From: Joshua Spence Date: Tue, 13 May 2014 21:40:27 +0000 (-0700) Subject: Don't prompt for patches when outputting lint results as XML. X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=79285208c426aa131d929ec8c5e0e36ccc750960;p=arcanist.git Don't prompt for patches when outputting lint results as XML. Summary: The Checkstyle XML output format is not intended to be an interactive workflow. Test Plan: Introduced linter issues and ran `arc lint`. Verified that no interactive prompt was shown. Reviewers: epriestley, #blessed_reviewers Reviewed By: epriestley, #blessed_reviewers Subscribers: epriestley, Korvin Differential Revision: https://secure.phabricator.com/D9107 --- diff --git a/src/workflow/ArcanistLintWorkflow.php b/src/workflow/ArcanistLintWorkflow.php index 3845118d..61f20a34 100644 --- a/src/workflow/ArcanistLintWorkflow.php +++ b/src/workflow/ArcanistLintWorkflow.php @@ -459,6 +459,8 @@ EOTEXT break; case 'xml': $renderer = new ArcanistLintCheckstyleXMLRenderer(); + $prompt_patches = false; + $apply_patches = $this->getArgument('apply-patches'); break; default: $renderer = new ArcanistLintConsoleRenderer();