Page MenuHomePhabricator

Further improvements to array comma linter rule
ClosedPublic

Authored by joshuaspence on Apr 6 2015, 9:56 PM.
Tags
None
Referenced Files
F15557592: D12308.id31149.diff
Mon, Apr 28, 10:19 PM
F15556691: D12308.id30962.diff
Mon, Apr 28, 5:57 PM
F15550630: D12308.id30962.diff
Sun, Apr 27, 12:48 PM
F15549279: D12308.id29565.diff
Sun, Apr 27, 4:50 AM
F15545124: D12308.id.diff
Sat, Apr 26, 9:02 AM
F15540368: D12308.diff
Fri, Apr 25, 7:15 AM
F15512270: D12308.id31149.diff
Thu, Apr 17, 9:22 AM
F15506114: D12308.id31149.diff
Tue, Apr 15, 8:45 AM
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
No Lint Coverage
Unit
Test Failures
Build Status
Buildable 5167
Build 5185: [Placeholder Plan] Wait for 30 Seconds

Unit TestsFailed

TimeTest
8,860 msArcanistXHPASTLinterTestCase::testLinter
816 msArcanistCSSLintLinterTestCase::testLinter
119 msArcanistCSSLintLinterTestCase::testVersion
126 msArcanistChmodLinterTestCase::testLinter
217 msArcanistClosureLinterTestCase::testLinter
View Full Test Results (1 Failed · 46 Passed · 6 Skipped)

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.