]> khamidou — GitHub mirrors - arcanist.git/commitdiff
Don't prompt for patches when outputting lint results as XML.
authorJoshua Spence <josh@joshuaspence.com>
Tue, 13 May 2014 21:40:27 +0000 (14:40 -0700)
committerepriestley <git@epriestley.com>
Tue, 13 May 2014 21:40:27 +0000 (14:40 -0700)
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

src/workflow/ArcanistLintWorkflow.php

index 3845118da854c28bc8c535317470d846ad6acdb3..61f20a34d312cd2b5db208c54304b22c29e14bab 100644 (file)
@@ -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();