]> khamidou — GitHub mirrors - arcanist.git/commit
Improve linter rules for array formatting
authorJoshua Spence <josh@joshuaspence.com>
Tue, 11 Aug 2015 12:34:38 +0000 (22:34 +1000)
committerJoshua Spence <josh@joshuaspence.com>
Tue, 11 Aug 2015 12:34:39 +0000 (22:34 +1000)
commit31a49196801a612ae00e241013b099f9aa0364c1
treee6464c1ae87b3e56d7852c4c60d0e8d2ce70e961
parentb82e4cd40e1fec6fbd2e439d0e8905b10bd4f8ea
Improve linter rules for array formatting

Summary: Modify `ArcanistParenthesesSpacingXHPASTLinterRule` and `ArcanistCallParenthesesXHPASTLinterRule` to apply to `array()` and `list()` as well. Depends on D13858.

Test Plan: Added unit tests.

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley, #blessed_reviewers

Subscribers: Korvin

Differential Revision: https://secure.phabricator.com/D13859
src/lint/linter/__tests__/phlxhp/array-formatting.lint-test [new file with mode: 0644]
src/lint/linter/xhpast/rules/ArcanistCallParenthesesXHPASTLinterRule.php
src/lint/linter/xhpast/rules/ArcanistParenthesesSpacingXHPASTLinterRule.php
src/unit/engine/ArcanistConfigurationDrivenUnitTestEngine.php