Page MenuHomePhabricator

Fix `LINT_ARRAY_SEPARATOR` for nested arrays
ClosedPublic

Authored by joshuaspence on Sep 25 2014, 2:53 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Aug 29, 1:22 PM
Unknown Object (File)
Aug 15 2024, 12:55 AM
Unknown Object (File)
Aug 6 2024, 11:50 PM
Unknown Object (File)
Aug 5 2024, 5:30 AM
Unknown Object (File)
Jul 31 2024, 10:07 AM
Unknown Object (File)
Jul 30 2024, 8:22 PM
Unknown Object (File)
Jul 30 2024, 1:23 PM
Unknown Object (File)
Jul 27 2024, 8:01 AM
Subscribers

Details

Summary

The LINT_ARRAY_SEPARATOR rule was added to ArcanistXHPASTLinter in D10535. Unfortunately, it does not correctly handle nested arrays correctly. This patch fixes this. Depends on D10554.

Test Plan

Added a test case.

Diff Detail

Repository
rARC Arcanist
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

joshuaspence retitled this revision from to Fix `LINT_ARRAY_SEPARATOR` for nested arrays.
joshuaspence updated this object.
joshuaspence edited the test plan for this revision. (Show Details)
joshuaspence added a reviewer: epriestley.

Another possible issue:

     $keys = array(
       'key1' => mt_rand(),
       'key2' => '',
-      'key3' => 'Phabricator');
+      'key3' => 'Phabricator',);
epriestley edited edge metadata.
This revision is now accepted and ready to land.Sep 25 2014, 1:26 PM
This revision was automatically updated to reflect the committed changes.