Page MenuHomePhabricator

Improve linter handling of short array syntax
ClosedPublic

Authored by joshuaspence on Aug 14 2015, 3:26 AM.
Tags
None
Referenced Files
F15448981: D13895.id33641.diff
Fri, Mar 28, 8:01 AM
F15437504: D13895.diff
Tue, Mar 25, 7:57 PM
F15422732: D13895.diff
Sat, Mar 22, 10:22 AM
Unknown Object (File)
Feb 12 2025, 3:12 AM
Unknown Object (File)
Feb 11 2025, 6:09 PM
Unknown Object (File)
Feb 11 2025, 6:08 PM
Unknown Object (File)
Feb 8 2025, 10:02 PM
Unknown Object (File)
Feb 8 2025, 10:02 PM

Details

Summary

Currently, linting PHP short array syntax (i.e. [...]) throws an exception ("Expected open parentheses"). This diff relaxes some restrictions which prevent short array syntax from linting with ArcanistParenthesesSpacingXHPASTLinterRule.

Test Plan

Modified test cases.

Diff Detail

Repository
rARC Arcanist
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

joshuaspence retitled this revision from to Improve linter handling of short array syntax.
joshuaspence updated this object.
joshuaspence edited the test plan for this revision. (Show Details)
joshuaspence added a reviewer: epriestley.
epriestley edited edge metadata.
This revision is now accepted and ready to land.Aug 14 2015, 10:58 AM
This revision was automatically updated to reflect the committed changes.