]> khamidou — GitHub mirrors - arcanist.git/commit
Fix `LINT_ARRAY_SEPARATOR` for nested arrays
authorJoshua Spence <josh@joshuaspence.com>
Thu, 25 Sep 2014 21:06:19 +0000 (07:06 +1000)
committerJoshua Spence <josh@joshuaspence.com>
Thu, 25 Sep 2014 21:14:55 +0000 (07:14 +1000)
commitcb2007825048f2b2ea7b9ec46a3c8a7b932bd821
tree2119e59f4708ec37e0150437167a5565edff7053
parente6e317db27ce40a7927116660f1f3175f162fb11
Fix `LINT_ARRAY_SEPARATOR` for nested arrays

Summary: The `LINT_ARRAY_SEPARATOR` rule was added to `ArcanistXHPASTLinter` in D10535. Unfortunately, it does not correctly handle nested arrays correctly. This patch fixes this. Depends on D10554.

Test Plan: Added a test case.

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley, #blessed_reviewers

Subscribers: epriestley, Korvin

Differential Revision: https://secure.phabricator.com/D10558
src/lint/linter/ArcanistXHPASTLinter.php
src/lint/linter/__tests__/xhpast/array-comma.lint-test