]> khamidou — GitHub mirrors - arcanist.git/commit
Fix `LINT_ARRAY_SEPARATOR` for heredocs
authorJoshua Spence <josh@joshuaspence.com>
Thu, 25 Sep 2014 22:35:40 +0000 (08:35 +1000)
committerJoshua Spence <josh@joshuaspence.com>
Thu, 25 Sep 2014 22:35:40 +0000 (08:35 +1000)
commit247a4fabb8b6f0751f246665f7779909ba6310f6
treebde7f77e60c68677203ab536744255c752f5ed23
parentcb2007825048f2b2ea7b9ec46a3c8a7b932bd821
Fix `LINT_ARRAY_SEPARATOR` for heredocs

Summary: It is not correct to add a trailing comma if the `n_ARRAY_VALUE` node is a heredoc string.

Test Plan: Added a test case.

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley, #blessed_reviewers

Subscribers: epriestley, Korvin

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