From c00da5bf4f530e4dfdc4633757cf4831083975b1 Mon Sep 17 00:00:00 2001 From: epriestley Date: Mon, 11 Apr 2011 14:53:48 -0700 Subject: [PATCH] Load more context for lint only if the files actually exist. --- src/lint/engine/base/ArcanistLintEngine.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lint/engine/base/ArcanistLintEngine.php b/src/lint/engine/base/ArcanistLintEngine.php index 053b72aa..35b4fe2a 100644 --- a/src/lint/engine/base/ArcanistLintEngine.php +++ b/src/lint/engine/base/ArcanistLintEngine.php @@ -176,7 +176,7 @@ abstract class ArcanistLintEngine { $result->setFilePathOnDisk($disk_path); if (isset($this->fileData[$path])) { $result->setData($this->fileData[$path]); - } else if ($disk_path) { + } else if ($disk_path && Filesystem::pathExists($disk_path)) { // TODO: this may cause us to, e.g., load a large binary when we only // raised an error about its filename. We could refine this by looking // through the lint messages and doing this load only if any of them -- 2.43.0