Page MenuHomePhabricator

Further improvements to array comma linter rule
ClosedPublic

Authored by joshuaspence on Apr 6 2015, 9:56 PM.
Tags
None
Referenced Files
F14399607: D12308.diff
Sun, Dec 22, 5:24 PM
F14392547: D12308.diff
Sat, Dec 21, 10:23 PM
Unknown Object (File)
Mon, Dec 2, 2:48 AM
Unknown Object (File)
Wed, Nov 27, 2:54 AM
Unknown Object (File)
Sat, Nov 23, 3:45 AM
Unknown Object (File)
Nov 20 2024, 4:58 AM
Unknown Object (File)
Nov 18 2024, 6:35 PM
Unknown Object (File)
Nov 14 2024, 4:38 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
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.