]> khamidou — GitHub mirrors - arcanist.git/commit
Improve brace formatting linter rule
authorJoshua Spence <josh@freelancer.com>
Mon, 7 Dec 2015 20:20:57 +0000 (20:20 +0000)
committerjoshuaspence <autocommitter@example.com>
Mon, 7 Dec 2015 20:20:57 +0000 (20:20 +0000)
commita6e81daad1bbd470c1907a7ea705b2e084fc07dd
tree40634c324369bf376d502197e926ac82c0b58dba
parentb52e9dc702c2b47e6c1604b8d7d7c0940bd5579a
Improve brace formatting linter rule

Summary: Allow the brace formatting linter rule to complain about `class X{}`.

Test Plan: Updated unit tests.

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley, #blessed_reviewers

Subscribers: Korvin

Differential Revision: https://secure.phabricator.com/D14690
src/lint/linter/xhpast/rules/ArcanistBraceFormattingXHPASTLinterRule.php
src/lint/linter/xhpast/rules/__tests__/brace-formatting/brace-formatting.lint-test [deleted file]
src/lint/linter/xhpast/rules/__tests__/brace-formatting/class.lint-test [new file with mode: 0644]
src/lint/linter/xhpast/rules/__tests__/brace-formatting/control-statement.lint-test [new file with mode: 0644]
src/lint/linter/xhpast/rules/__tests__/brace-formatting/declare.lint-test [new file with mode: 0644]
src/lint/linter/xhpast/rules/__tests__/brace-formatting/function.lint-test [new file with mode: 0644]
src/lint/linter/xhpast/rules/__tests__/brace-formatting/try-catch.lint-test [new file with mode: 0644]