Page MenuHomePhabricator

Improve array comma rule
ClosedPublic

Authored by joshuaspence on Apr 5 2015, 12:05 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Dec 20, 9:47 AM
Unknown Object (File)
Fri, Dec 20, 9:46 AM
Unknown Object (File)
Wed, Dec 4, 6:20 PM
Unknown Object (File)
Thu, Nov 28, 10:55 AM
Unknown Object (File)
Tue, Nov 26, 8:53 PM
Unknown Object (File)
Tue, Nov 26, 1:58 PM
Unknown Object (File)
Mon, Nov 25, 7:39 AM
Unknown Object (File)
Sun, Nov 24, 1:56 AM
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.