From 4fb2b48d0697b680b634dfe46c35e3e1a571d19a Mon Sep 17 00:00:00 2001 From: vrana Date: Fri, 19 Oct 2012 12:50:38 -0700 Subject: [PATCH] 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 --- src/lint/engine/PhutilLintEngine.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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]); } } -- 2.43.0