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:
parent
1d5a2aff20
commit
37b494d974
1 changed files with 2 additions and 2 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Add table
Reference in a new issue