]> khamidou — GitHub mirrors - arcanist.git/commit
Add an XHPAST lint rule for brace formatting
authorepriestley <git@epriestley.com>
Mon, 1 Aug 2011 20:18:53 +0000 (13:18 -0700)
committerepriestley <git@epriestley.com>
Tue, 2 Aug 2011 17:14:58 +0000 (10:14 -0700)
commit17c82ff03cb9a33ad0165970d2cc8be337e82d13
treeb7f376e95a64ff93ff7048338ebd154099e94683
parent57ff80e6c413b7a3f2e30ca1316e7cfd080ca1eb
Add an XHPAST lint rule for brace formatting

Summary: See D753. Let's just have lint fix this. Depends on D754 (it fails to
detect all the blocks without that patch, but doesn't do anything bad).
Test Plan: Ran unit tests.
Reviewed By: jungejason
Reviewers: jungejason, tuomaspelkonen, aran
CC: hunterbridges, aran, epriestley, jungejason
Differential Revision: 755
src/lint/linter/xhpast/ArcanistXHPASTLinter.php
src/lint/linter/xhpast/__tests__/data/creative-brace-use.lint-test [new file with mode: 0644]