]> khamidou — GitHub mirrors - arcanist.git/commitdiff
Move line to a better place
authorvrana <jakubv@fb.com>
Wed, 20 Jun 2012 20:03:03 +0000 (13:03 -0700)
committervrana <jakubv@fb.com>
Wed, 20 Jun 2012 20:03:06 +0000 (13:03 -0700)
src/lint/engine/PhutilLintEngine.php

index 34c31ea9611f393e54ec69332dbcd52489c89f70..97d9232daf186a84d3e65f0280bdafa6c876456b 100644 (file)
@@ -93,9 +93,7 @@ class PhutilLintEngine extends ArcanistLintEngine {
         ArcanistXHPASTLinter::LINT_PHP_53_FEATURES
           => ArcanistLintSeverity::SEVERITY_ERROR,
       ));
-    $license_linter = new ArcanistApacheLicenseLinter();
     $linters[] = $xhpast_linter;
-    $linters[] = $license_linter;
     foreach ($paths as $path) {
       if (preg_match('/\.php$/', $path)) {
         $xhpast_linter->addPath($path);
@@ -103,6 +101,8 @@ class PhutilLintEngine extends ArcanistLintEngine {
       }
     }
 
+    $license_linter = new ArcanistApacheLicenseLinter();
+    $linters[] = $license_linter;
     foreach ($paths as $path) {
       if (preg_match('/\.(php|cpp|hpp|l|y)$/', $path)) {
         if (!preg_match('@^externals/@', $path)) {