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:
parent
f0c0245957
commit
4fb2b48d06
1 changed files with 2 additions and 1 deletions
|
@ -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]);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue