]> khamidou — GitHub mirrors - arcanist.git/commit
Allow setting lint cache granularity
authorvrana <jakubv@fb.com>
Thu, 22 Nov 2012 02:38:24 +0000 (18:38 -0800)
committervrana <jakubv@fb.com>
Mon, 3 Dec 2012 23:30:06 +0000 (15:30 -0800)
commite8eacb6ae3b3138bc4d89ca4cd6b2f0a7501eb86
tree0eb71d4de0feeae3578f6d4634f164ec08ad0873
parent0d1d04e434b06ce992b539e60df0aa6c35d738e7
Allow setting lint cache granularity

Summary:
We can add `GRANULARITY_DIRECTORY` and `GRANULARITY_REPOSITORY` later.
Repository granularity may use current commit + changes.
Directory would need to use hashes of all files in dir which would be quite expensive.

Test Plan:
  $ echo '<?php class A extends B {}' > A.php
  $ arc lint --cache 1
  $ arc lint --cache 1
  $ echo '<?php class B {}' > B.php
  $ arc lint --cache 1
  $ arc lint --cache 1
  $ rm B.php
  $ arc lint --cache 1
  $ arc lint --cache 1

Reviewers: epriestley

Reviewed By: epriestley

CC: aran, Korvin
Differential Revision: https://secure.phabricator.com/D4021
src/lint/ArcanistLintMessage.php
src/lint/engine/ArcanistLintEngine.php
src/lint/linter/ArcanistLinter.php
src/lint/linter/ArcanistPhutilLibraryLinter.php
src/workflow/ArcanistLintWorkflow.php