]> khamidou — GitHub mirrors - arcanist.git/commit
Add unit tests for implicit fallthrough lint rule
authorvrana <jakubv@fb.com>
Sat, 23 Feb 2013 05:12:29 +0000 (21:12 -0800)
committervrana <jakubv@fb.com>
Sat, 23 Feb 2013 17:07:28 +0000 (09:07 -0800)
commit0b120bd04b17ff16dc9b6133a9ec7a5cad555daa
tree677c84f5f279ae83bed82d6fd3e06f471cb11ab8
parent8ec038291a9e6eeace7c072a347930af0f949522
Add unit tests for implicit fallthrough lint rule

Summary:
The perf fix actually catches some real problems.
I didn't find anything in libphutil, Arcanist and Phabricator though.

Also bump version.

Also allow configuring the hook.

Test Plan:
Added a test, saw it fail with the old code.
Repeat for hook.

Reviewers: epriestley

Reviewed By: epriestley

CC: aran, Korvin
Differential Revision: https://secure.phabricator.com/D5097
src/__phutil_library_map__.php
src/lint/linter/ArcanistXHPASTLinter.php
src/lint/linter/__tests__/ArcanistXHPASTLintTestSwitchHook.php [new file with mode: 0644]
src/lint/linter/__tests__/xhpast/switches.lint-test