]> khamidou — GitHub mirrors - arcanist.git/commit
Implement hook for checking switch lint
authorvrana <jakubv@fb.com>
Tue, 5 Feb 2013 19:00:07 +0000 (11:00 -0800)
committervrana <jakubv@fb.com>
Tue, 5 Feb 2013 19:46:59 +0000 (11:46 -0800)
commitbd71ba675e1f950bf551bb748ca8ea8faf3c61d7
tree2e148cfd232106cfe37eb139cf17bebbe0dc7c57
parentbe73bd871634f8c7fca0d847064b01daded452b4
Implement hook for checking switch lint

Summary:
We want to use it for `yield` and `invariant_violation()` which throws.
Having node instead of token would be better but this would be enough.

Test Plan: Implemented a hook in FB repo and added a test case there.

Reviewers: epriestley

Reviewed By: epriestley

CC: aran, Korvin
Differential Revision: https://secure.phabricator.com/D4821
src/__phutil_library_map__.php
src/lint/linter/ArcanistXHPASTLinter.php
src/lint/linter/xhpast/ArcanistXHPASTLintSwitchHook.php [new file with mode: 0644]