Page MenuHomePhabricator

Improve array comma rule
ClosedPublic

Authored by joshuaspence on Apr 5 2015, 12:05 PM.
Tags
None
Referenced Files
F15460725: D12296.id.diff
Tue, Apr 1, 1:32 AM
F15445259: D12296.id29564.diff
Thu, Mar 27, 1:10 PM
F15428832: D12296.diff
Sun, Mar 23, 10:39 PM
F15399874: D12296.id29499.diff
Mon, Mar 17, 8:14 AM
F15398532: D12296.diff
Mon, Mar 17, 12:32 AM
F15384748: D12296.diff
Fri, Mar 14, 8:42 PM
F15354306: D12296.id.diff
Tue, Mar 11, 3:15 AM
F15322416: D12296.id29564.diff
Thu, Mar 6, 11:44 PM
Subscribers

Details

Summary

Improve ArcanistXHPASTLinter::LINT_ARRAY_SEPARATOR in handling multi-line arrays, see D12280 and D12281 for example. Depends on D12295.

Test Plan

Updated unit tests.

Diff Detail

Repository
rARC Arcanist
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

joshuaspence retitled this revision from to Improve array comma rule.
joshuaspence updated this object.
joshuaspence edited the test plan for this revision. (Show Details)
joshuaspence added a reviewer: epriestley.
joshuaspence edited edge metadata.
joshuaspence updated this object.

I also want to modify this to be able to perform the following fix:

array(
  1,
  2,
-  3,);
+  3,
+);
epriestley edited edge metadata.
This revision is now accepted and ready to land.Apr 6 2015, 1:24 PM
This revision was automatically updated to reflect the committed changes.