Page MenuHomePhabricator

Minor improvement for array value linter rule
ClosedPublic

Authored by joshuaspence on Aug 10 2015, 9:38 PM.
Tags
None
Referenced Files
F18793552: D13856.id33461.diff
Oct 16 2025, 9:37 PM
F18626056: D13856.diff
Sep 16 2025, 12:15 AM
F18609262: D13856.diff
Sep 14 2025, 2:35 AM
F18563442: D13856.diff
Sep 9 2025, 7:12 AM
F18084488: D13856.id33461.diff
Aug 5 2025, 3:46 PM
Unknown Object (File)
May 10 2025, 8:19 AM
Unknown Object (File)
Apr 28 2025, 9:31 AM
Unknown Object (File)
Apr 27 2025, 7:10 PM
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.