]> khamidou — GitHub mirrors - arcanist.git/commit
Stop XHPASTLinter from eating a newline after else
authorKiyoto Tamura <owenestea@gmail.com>
Thu, 12 Jan 2012 02:03:56 +0000 (18:03 -0800)
committerepriestley <git@epriestley.com>
Thu, 12 Jan 2012 02:03:56 +0000 (18:03 -0800)
commit6dfa45a8b304e393f86865fc00b813a47c22e7a0
treef0773af492f8887230dee697e12051f8fbc43b07
parentb61e4eacf1d4097a270a285eca87778156d1f194
Stop XHPASTLinter from eating a newline after else

Summary:
If the else clause does not have braces (one-liner), XHPASTLinter eats the
newline and brings the body statement of the else clause to the same line.

Test Plan: added a new test to space-after-control-keywords.lint-test

Reviewers: epriestley

CC: aran, epriestley, kiyoto
Differential Revision: https://secure.phabricator.com/D1367
src/lint/linter/xhpast/ArcanistXHPASTLinter.php
src/lint/linter/xhpast/__tests__/data/space-after-control-keywords.lint-test