]> khamidou — GitHub mirrors - arcanist.git/commit
Improve linter handling of short array syntax
authorJoshua Spence <josh@joshuaspence.com>
Wed, 19 Aug 2015 05:35:16 +0000 (15:35 +1000)
committerJoshua Spence <josh@freelancer.com>
Wed, 19 Aug 2015 05:35:16 +0000 (15:35 +1000)
commit27ec3a2e34aab131e596ffa4560daef0c0fc8534
tree27a469daf9e16c1c035e51345569318c56b75cae
parent4404e66735c470cddd7f1cdb8aef05d9f322ad66
Improve linter handling of short array syntax

Summary: Currently, linting PHP short array syntax (i.e. `[...]`) throws an exception ("Expected open parentheses"). This diff relaxes some restrictions which prevent short array syntax from linting with `ArcanistParenthesesSpacingXHPASTLinterRule`.

Test Plan: Modified test cases.

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley, #blessed_reviewers

Subscribers: agenticarus, Korvin

Differential Revision: https://secure.phabricator.com/D13895
src/lint/linter/__tests__/xhpast/array-formatting.lint-test
src/lint/linter/xhpast/rules/ArcanistCallParenthesesXHPASTLinterRule.php
src/lint/linter/xhpast/rules/ArcanistParenthesesSpacingXHPASTLinterRule.php