1
0
Fork 0
mirror of https://we.phorge.it/source/arcanist.git synced 2025-04-01 15:08:13 +02:00

Move line to a better place

This commit is contained in:
vrana 2012-06-20 13:03:03 -07:00
parent 1d5a2aff20
commit 37b494d974

View 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)) {