]> khamidou — GitHub mirrors - arcanist.git/commitdiff
Allow `ArcanistPhutilLibraryLinter` to run with an out-of-date XHPAST binary
authorJoshua Spence <josh@joshuaspence.com>
Mon, 2 Feb 2015 21:01:11 +0000 (08:01 +1100)
committerJoshua Spence <josh@joshuaspence.com>
Mon, 2 Feb 2015 21:01:11 +0000 (08:01 +1100)
Summary: There is no need to check if the XHPAST binary is available here because this linter does not actually parse PHP, it only considers the library map.

Test Plan: Removed the XHPAST binary and ran `arc lint` on a bunch of files.

Reviewers: #blessed_reviewers, epriestley

Reviewed By: #blessed_reviewers, epriestley

Subscribers: Korvin, epriestley

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

src/lint/linter/ArcanistPhutilLibraryLinter.php

index 0e9ca2b3c88f330f933b3eb135eb478273c397e8..baee3ba37b870773845312c8a486e4b0781f7b64 100644 (file)
@@ -51,10 +51,6 @@ final class ArcanistPhutilLibraryLinter extends ArcanistLinter {
   }
 
   public function willLintPaths(array $paths) {
-    if (!xhpast_is_available()) {
-      throw new Exception(xhpast_get_build_instructions());
-    }
-
     // NOTE: For now, we completely ignore paths and just lint every library in
     // its entirety. This is simpler and relatively fast because we don't do any
     // detailed checks and all the data we need for this comes out of module