]> khamidou — GitHub mirrors - arcanist.git/commit
Add canRun to linters.
authorDavid Cramer <dcramer@gmail.com>
Wed, 18 Jan 2012 00:30:59 +0000 (16:30 -0800)
committerDavid Cramer <dcramer@gmail.com>
Wed, 18 Jan 2012 01:15:21 +0000 (17:15 -0800)
commit2fa80bbd446c6f509b343267f03e994b41efdc74
treed358177b00fcf1b0f80f96f9507002d56d35c049
parent9be9554f2d184ecfab9a898336057bd503e24bbb
Add canRun to linters.

Summary:
This allows engines to check the canRun method on linters,
which should determine if a linter is configured and can
be run in the current environment.

Test Plan:
Implement a linter with canRun as false, and ensure
it doesnt run.

Ensure all existing linters still run by default.

Reviewers: epriestley

Reviewed By: epriestley

CC: aran
Differential Revision: https://secure.phabricator.com/D1445
src/__phutil_library_map__.php
src/lint/engine/base/ArcanistLintEngine.php
src/lint/linter/base/ArcanistLinter.php