]> khamidou — GitHub mirrors - arcanist.git/commitdiff
Pass `--error-level=all` to `puppet-lint`
authorJoshua Spence <josh@joshuaspence.com>
Sun, 11 Jan 2015 19:41:46 +0000 (06:41 +1100)
committerJoshua Spence <josh@joshuaspence.com>
Sun, 11 Jan 2015 19:41:46 +0000 (06:41 +1100)
Summary: Without explicitly passing `--error-level=all` to `puppet-lint`, the configuration file for `puppet-lint` could contain `--error-level=error`. This would limit the ability of `arc lint` to detect linter issues and therefore we should override this flag from the command line explicitly.

Test Plan: This is mostly theoretical.

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley, #blessed_reviewers

Subscribers: Korvin, epriestley

Differential Revision: https://secure.phabricator.com/D11316

src/lint/linter/ArcanistPuppetLintLinter.php

index efe83e9d386b8583ab99a55e63d3a6644809600d..1a593a9cbdc5afaee50f0f2b1bfb8fb20d266599 100644 (file)
@@ -58,12 +58,14 @@ final class ArcanistPuppetLintLinter extends ArcanistExternalLinter {
   }
 
   protected function getMandatoryFlags() {
-    return array(sprintf('--log-format=%s', implode('|', array(
-      '%{linenumber}',
-      '%{column}',
-      '%{kind}',
-      '%{check}',
-      '%{message}',
+    return array(
+      '--error-level=all',
+      sprintf('--log-format=%s', implode('|', array(
+        '%{linenumber}',
+        '%{column}',
+        '%{kind}',
+        '%{check}',
+        '%{message}',
       ))),
     );
   }