From: vrana Date: Fri, 19 Oct 2012 19:50:38 +0000 (-0700) Subject: Don't unset linted paths from subdirectory and in commit hook mode X-Git-Tag: conduit-6~75 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=4fb2b48d0697b680b634dfe46c35e3e1a571d19a;p=arcanist.git 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 --- diff --git a/src/lint/engine/PhutilLintEngine.php b/src/lint/engine/PhutilLintEngine.php index cf2e46cd..e4d35184 100644 --- a/src/lint/engine/PhutilLintEngine.php +++ b/src/lint/engine/PhutilLintEngine.php @@ -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]); } }