]> khamidou — GitHub mirrors - arcanist.git/commitdiff
Setting default minimumSeverity to zero from null
authorJason Ge <jungejason@fb.com>
Wed, 13 Jul 2011 23:33:18 +0000 (16:33 -0700)
committerJason Ge <jungejason@fb.com>
Wed, 20 Jul 2011 18:47:17 +0000 (11:47 -0700)
Summary:
In hphp's version of idx, it uses debug_rlog() which is not
available in phabricator's code. It will be executed if null is passed
as the second value to idx.

Test Plan:
ran arc lint which still report error message, and php
./scripts/arcanist.php unit src/lint/linter/xhpast/__test__ doesn't
throw.

Reviewed By: epriestley
Reviewers: tuomaspelkonen, epriestley
CC: aran, jungejason, epriestley
Differential Revision: 666

src/lint/engine/base/ArcanistLintEngine.php

index 84ff3357b13e4ade520c50b51e331c4377606f1b..6f98259b376a03dd5fff91a548a622790f128b89 100644 (file)
@@ -65,7 +65,7 @@ abstract class ArcanistLintEngine {
   protected $charToLine = array();
   protected $lineToFirstChar = array();
   private $results = array();
-  private $minimumSeverity = null;
+  private $minimumSeverity = ArcanistLintSeverity::SEVERITY_DISABLED;
 
   private $changedLines = array();
   private $commitHookMode = false;