Page MenuHomePhabricator

Improve linter handling of short array syntax
ClosedPublic

Authored by joshuaspence on Aug 14 2015, 3:26 AM.
Tags
None
Referenced Files
F18815359: D13895.diff
Oct 21 2025, 1:52 AM
F18793496: D13895.id33543.diff
Oct 16 2025, 9:30 PM
F18793495: D13895.id33640.diff
Oct 16 2025, 9:30 PM
F18765918: D13895.id33543.diff
Oct 7 2025, 1:48 PM
F18745462: D13895.id.diff
Oct 3 2025, 7:10 AM
F18659209: D13895.id33641.diff
Sep 23 2025, 10:29 AM
F18626893: D13895.id33641.diff
Sep 16 2025, 2:45 AM
F18625008: D13895.id.diff
Sep 15 2025, 9:39 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
Branch
master
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 7682
Build 8401: [Placeholder Plan] Wait for 30 Seconds
Build 8400: arc lint + arc unit

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.