Page MenuHomePhabricator

Improve linter handling of short array syntax
ClosedPublic

Authored by joshuaspence on Aug 14 2015, 3:26 AM.
Tags
None
Referenced Files
F13919990: D13895.diff
Thu, Oct 10, 3:17 PM
Unknown Object (File)
Tue, Oct 1, 7:59 AM
Unknown Object (File)
Mon, Sep 23, 9:35 PM
Unknown Object (File)
Thu, Sep 12, 2:36 AM
Unknown Object (File)
Wed, Sep 11, 2:08 PM
Unknown Object (File)
Wed, Sep 11, 2:05 PM
Unknown Object (File)
Wed, Sep 11, 2:04 PM
Unknown Object (File)
Wed, Sep 11, 1:54 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.