1
0
Fork 0
mirror of https://we.phorge.it/source/arcanist.git synced 2024-11-26 00:32:41 +01:00

Don't unset linted paths from subdirectory and in commit hook mode

Summary: D3737#6

Test Plan:
  phabricator/src/ $ arc lint __phutil_library_init__.php

Reviewers: epriestley

Reviewed By: epriestley

CC: aran, Korvin

Differential Revision: https://secure.phabricator.com/D3746
This commit is contained in:
vrana 2012-10-19 12:50:38 -07:00
parent f0c0245957
commit 4fb2b48d06

View file

@ -52,7 +52,8 @@ class PhutilLintEngine extends ArcanistLintEngine {
$linters[] = $name_linter;
foreach ($paths as $key => $path) {
$name_linter->addPath($path);
if (!is_file($path)) {
if (!$this->getCommitHookMode() &&
!is_file($this->getFilePathOnDisk($path))) {
unset($paths[$key]);
}
}