]> khamidou — GitHub mirrors - arcanist.git/commit
Improve detection of invalid unit and lint engines
authorepriestley <git@epriestley.com>
Wed, 21 Dec 2011 16:51:34 +0000 (08:51 -0800)
committerepriestley <git@epriestley.com>
Wed, 21 Dec 2011 17:02:04 +0000 (09:02 -0800)
commitca879150c8a4d9c132de892f14c248d09ba1ae82
tree5606c135fb5ae4103dcfd39d981c15be2c6f4f91
parent89cb92a22ca69f10dc0256a11d2756c1290da789
Improve detection of invalid unit and lint engines

Summary: We fatal confusingly if you specify a valid class that isn't of the
right subclass (like a linter rather than a lint engine). Improve the error
message.

Test Plan:
  - Ran "arc lint --engine PhutilSymbolLoader", "arc unit --engine
PhutilSymbolLoader", got expected failures.
  - Ran "arc diff" normally without errors.

Reviewers: btrahan, jungejason, aran

Reviewed By: aran

CC: aran
Differential Revision: https://secure.phabricator.com/D1259
src/workflow/lint/ArcanistLintWorkflow.php
src/workflow/unit/ArcanistUnitWorkflow.php
src/workflow/unit/__init__.php