]> khamidou — GitHub mirrors - arcanist.git/commit
Extend `LINT_BRACE_FORMATTING` to support more scenarios
authorJoshua Spence <josh@joshuaspence.com>
Mon, 8 Dec 2014 12:31:21 +0000 (23:31 +1100)
committerJoshua Spence <josh@joshuaspence.com>
Mon, 8 Dec 2014 12:31:21 +0000 (23:31 +1100)
commit4ca3463df684795b0cec6798256beebb845ee572
tree7900a6060dea62487b3bd0f8db64d906a5e72cbb
parentee2070fadbc50d74d0f47071c436330c46ac4e10
Extend `LINT_BRACE_FORMATTING` to support more scenarios

Summary: Extend the `ArcanistXHPASTLinter::LINT_BRACE_FORMATTING` rule to support a bunch of extra cases.

Test Plan: Added test cases.

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley, #blessed_reviewers

Subscribers: epriestley, Korvin

Differential Revision: https://secure.phabricator.com/D10572
src/lint/linter/ArcanistXHPASTLinter.php
src/lint/linter/__tests__/xhpast/creative-brace-use.lint-test
src/lint/linter/__tests__/xhpast/parens-hug-contents.lint-test
src/lint/linter/__tests__/xhpast/space-after-control-keywords.lint-test