]> khamidou — GitHub mirrors - arcanist.git/commitdiff
Add `--quiet` flags to the `ArcanistCSSLintLinter`.
authorJoshua Spence <josh@joshuaspence.com>
Sat, 10 May 2014 08:52:57 +0000 (01:52 -0700)
committerepriestley <git@epriestley.com>
Sat, 10 May 2014 08:52:57 +0000 (01:52 -0700)
Summary: This isn't really necessary, nor does it bear any significant benefits, however semantically it seems to make sense. From `csslint --help`, the `--quiet` flag causes `csslint` to "Only output when errors are present".

Test Plan:
Tested using `csslint` directly:

```
> csslint test.css

csslint: No errors in /home/joshua/workspace/github.com/facebook/arcanist/foo.css.
> csslint --quiet test.css
```

Reviewers: chad, epriestley, #blessed_reviewers

Reviewed By: epriestley, #blessed_reviewers

Subscribers: epriestley, Korvin

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

src/lint/linter/ArcanistCSSLintLinter.php

index 25b1afe0a34ba466da995f393be5472480170575..1ac7e4a0b543a7629b5ece456b3dc4dab5ddeb6c 100644 (file)
@@ -19,7 +19,10 @@ final class ArcanistCSSLintLinter extends ArcanistExternalLinter {
   }
 
   public function getMandatoryFlags() {
-    return array('--format=lint-xml');
+    return array(
+      '--format=lint-xml',
+      '--quiet',
+    );
   }
 
   public function getDefaultFlags() {