Page MenuHomePhabricator

Further improvements to array comma linter rule
ClosedPublic

Authored by joshuaspence on Apr 6 2015, 9:56 PM.
Tags
None
Referenced Files
F15506114: D12308.id31149.diff
Tue, Apr 15, 8:45 AM
F15456664: D12308.diff
Sun, Mar 30, 11:09 AM
F15443205: D12308.id31149.diff
Thu, Mar 27, 3:01 AM
F15436465: D12308.id30962.diff
Tue, Mar 25, 2:24 PM
F15435684: D12308.id.diff
Tue, Mar 25, 9:43 AM
F15434932: D12308.id29565.diff
Tue, Mar 25, 6:07 AM
F15430560: D12308.diff
Mon, Mar 24, 8:11 AM
F15385129: D12308.id29565.diff
Mar 14 2025, 9:47 PM
Subscribers

Details

Summary

Improve the ArcanistXHPASTLinter::LINT_ARRAY_SEPARATOR rule to be able to autofix the following code:

array(
  1,
  2,
  3, /* comment */ );
Test Plan

Added unit tests.

Diff Detail

Repository
rARC Arcanist
Branch
master
Lint
Lint Passed
SeverityLocationCodeMessage
Auto-Fixsrc/lint/linter/__tests__/xhpast/array-comma.lint-test:73TXT6Trailing Whitespace
Auto-Fixsrc/lint/linter/__tests__/xhpast/array-comma.lint-test:78TXT6Trailing Whitespace
Unit
Tests Passed
Build Status
Buildable 6027
Build 6047: [Placeholder Plan] Wait for 30 Seconds

Event Timeline

joshuaspence retitled this revision from to Further improvements to array comma linter rule.
joshuaspence updated this object.
joshuaspence edited the test plan for this revision. (Show Details)
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.May 19 2015, 3:14 PM
This revision was automatically updated to reflect the committed changes.