From: vrana Date: Wed, 20 Jun 2012 20:03:03 +0000 (-0700) Subject: Move line to a better place X-Git-Tag: conduit-6~239 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=37b494d9745c16aae868b5d1837d0f1095efa33c;p=arcanist.git Move line to a better place --- diff --git a/src/lint/engine/PhutilLintEngine.php b/src/lint/engine/PhutilLintEngine.php index 34c31ea9..97d9232d 100644 --- a/src/lint/engine/PhutilLintEngine.php +++ b/src/lint/engine/PhutilLintEngine.php @@ -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)) {