HomePhabricator

Further improvements to array comma linter rule

Description

Further improvements to array comma linter rule

Summary:
Improve the ArcanistXHPASTLinter::LINT_ARRAY_SEPARATOR rule to be able to autofix the following code:

array(
  1,
  2,
  3, /* comment */ );

Test Plan: Added unit tests.

Reviewers: epriestley, Blessed Reviewers

Reviewed By: epriestley, Blessed Reviewers

Subscribers: epriestley

Differential Revision: https://secure.phabricator.com/D12308

Details

Provenance
joshuaspenceAuthored on
joshuaspencePushed on May 19 2015, 9:05 PM
Reviewer
Blessed Reviewers
Differential Revision
D12308: Further improvements to array comma linter rule
Parents
rARC25855c4427cc: Don't explicitly use an interpreter for `pep8`
Branches
Unknown
Tags
Unknown