1
0
Fork 0
mirror of https://we.phorge.it/source/arcanist.git synced 2024-09-20 00:49:11 +02:00

Load more context for lint only if the files actually exist.

This commit is contained in:
epriestley 2011-04-11 14:53:48 -07:00
parent d67a081243
commit c00da5bf4f

View file

@ -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