]> khamidou — GitHub mirrors - arcanist.git/commit
Cache stopped paths in lint
authorvrana <jakubv@fb.com>
Tue, 15 Jan 2013 21:47:11 +0000 (13:47 -0800)
committervrana <jakubv@fb.com>
Wed, 16 Jan 2013 01:58:32 +0000 (17:58 -0800)
commitf25c01606be034b955f921c0b9be5195edf0a2d0
tree12b0a4e75cfe95a0a7d8df07dbf6632928fb4776
parentd4359a838add593ba9066697662375953f685c3b
Cache stopped paths in lint

Summary:
If linter with file cache granularity stops linting then we don't run it on the same path next time.
But we still run linters with non-file cache granularity causing that they run even on the paths that would be stopped otherwise.

Test Plan:
Put global granularity linter after Generated linter.
Caused an error from this linter but in ignored path.
Verified that 'stopped' is saved in `lint-cache.json`.
Linted the same files second time, verified that the path is still skipped (wasn't before).

Reviewers: epriestley

Reviewed By: epriestley

CC: aran, Korvin
Differential Revision: https://secure.phabricator.com/D4446
src/lint/engine/ArcanistLintEngine.php
src/workflow/ArcanistLintWorkflow.php