]> khamidou — GitHub mirrors - arcanist.git/commit
arcanist: add postponed linter support
authorAndrew Gallagher <agallagher@fb.com>
Mon, 2 Jul 2012 22:53:22 +0000 (15:53 -0700)
committerAndrew Gallagher <agallagher@fb.com>
Thu, 12 Jul 2012 01:09:05 +0000 (18:09 -0700)
commit19e718a267fc5faaafe3a5b61bdb85d7f4d4caf2
tree8976a5bb97271a68fcda469a11f030f629cd7647
parentdaa210022dcf384c1b89606b7b40d50c0355c6fc
arcanist: add postponed linter support

Summary:
This uses a similiar approach as with postponed unittests, allowing
the lint workflow/engine to report postponed linter names.  After
the lint engine is run, a separate method is used to collect any
postponed linters and these are reposted to the diff via the
"arc:lint-postponed" property.

Also, a ##diff.wasCreated## was added allowing hooks to be called
immediately after the call ##differential.creatediff## with the
returned diff ID.

Test Plan:
Created diffs with a dummy lint engine which always reports a
postponed linter.

Reviewers: epriestley, vrana

Reviewed By: epriestley

CC: aran, Korvin
Maniphest Tasks: T1332

Differential Revision: https://secure.phabricator.com/D2933
src/events/constant/ArcanistEventType.php
src/lint/engine/ArcanistLintEngine.php
src/workflow/ArcanistDiffWorkflow.php
src/workflow/ArcanistLintWorkflow.php