]> khamidou — GitHub mirrors - arcanist.git/commit
lint: fail early if no lint engine is defined
authorAdam Simpkins <simpkins@fb.com>
Tue, 17 May 2011 19:43:49 +0000 (12:43 -0700)
committerAdam Simpkins <simpkins@fb.com>
Tue, 17 May 2011 19:59:49 +0000 (12:59 -0700)
commit952fa69f72bd226a5e4b1c481780bea7058037d9
treeb2dc16deb3af73a6fffb814d59966c753be0074f
parent3a559ddd1398c0050469b3a77bfb0f10eda88e4a
lint: fail early if no lint engine is defined

Summary:
Update the lint workflow to exit immediately it there is no lint engine
configured.  Previously it scanned the repository to find the paths to
check before failing in this case.  Scanning the repository can be
relatively slow on large repositories.

Test Plan:
Ran "arc lint" in a large repository with no lint engine configured.
Verified that it failed quickly, without scanning the repository first.

Reviewed By: jungejason
Reviewers: jungejason, epriestley
CC: aran, jungejason
Differential Revision: 297
src/workflow/lint/ArcanistLintWorkflow.php