]> khamidou — GitHub mirrors - arcanist.git/commit
Don't lint symlinks by default.
authorJoshua Spence <josh@joshuaspence.com>
Wed, 11 Jun 2014 01:20:59 +0000 (18:20 -0700)
committerepriestley <git@epriestley.com>
Wed, 11 Jun 2014 01:20:59 +0000 (18:20 -0700)
commit02e3905cf50a128f58c7c6fc7a3266a09a1e286d
tree473cec14a4efd470f9caa434ad4002f74c781aaf
parentff1915ecff28170cf8ceb54774cb800a8bbae212
Don't lint symlinks by default.

Summary: Fixes T5300. Currently, if a dead symbolic link is linted, all kinds of errors will be thrown by most linters because they will try to read the (non-existent) file contents. Instead, let's not lint symbolic links by default. In the case that the target of a symbolic link is inside the working copy, then it should be being linted anyway.

Test Plan: Created a symbolic link and verified that it wasn't linted (by any linter other than the `ArcanistFilenameLinter`).

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley, #blessed_reviewers

Subscribers: epriestley, Korvin

Maniphest Tasks: T5300

Differential Revision: https://secure.phabricator.com/D9448
src/lint/engine/ArcanistLintEngine.php
src/lint/linter/ArcanistFilenameLinter.php
src/lint/linter/ArcanistLinter.php