Page MenuHomePhabricator

Improve array comma rule
ClosedPublic

Authored by joshuaspence on Apr 5 2015, 12:05 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Nov 20, 1:05 PM
Unknown Object (File)
Tue, Nov 5, 9:35 PM
Unknown Object (File)
Tue, Nov 5, 9:35 PM
Unknown Object (File)
Tue, Nov 5, 9:35 PM
Unknown Object (File)
Mon, Nov 4, 9:54 AM
Unknown Object (File)
Oct 22 2024, 4:08 PM
Unknown Object (File)
Oct 20 2024, 2:55 PM
Unknown Object (File)
Oct 18 2024, 12:10 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.