Page MenuHomePhabricator

Minor improvement for array value linter rule
ClosedPublic

Authored by joshuaspence on Aug 10 2015, 9:38 PM.
Tags
None
Referenced Files
F15470562: D13856.diff
Fri, Apr 4, 11:27 PM
F15464041: D13856.id33463.diff
Wed, Apr 2, 5:44 AM
F15462892: D13856.id33461.diff
Tue, Apr 1, 6:37 PM
F15461444: D13856.id.diff
Tue, Apr 1, 8:24 AM
F15453195: D13856.id33461.diff
Sat, Mar 29, 10:04 AM
F15389185: D13856.id33461.diff
Sat, Mar 15, 4:58 AM
F15381148: D13856.id.diff
Fri, Mar 14, 6:07 AM
Unknown Object (File)
Feb 21 2025, 1:08 AM
Subscribers

Details

Summary

This linter rule fails on multi-line arrays with no whitespace before the first array value. Specifically, the following exception is thrown:

Fatal error: Call to a member function isAnyWhitespace() on boolean in arcanist/src/lint/linter/xhpast/rules/ArcanistArrayValueXHPASTLinterRule.php on line 40
Test Plan

Added another test case.

Diff Detail

Repository
rARC Arcanist
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

joshuaspence retitled this revision from to Minor improvement for array value linter rule.
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 10 2015, 9:38 PM
This revision was automatically updated to reflect the committed changes.