Page MenuHomePhabricator

Add a linter rule for spacing before opening parenthesis in function calls
ClosedPublic

Authored by joshuaspence on Aug 5 2015, 10:22 AM.
Tags
None
Referenced Files
F14094900: D13796.diff
Mon, Nov 25, 6:13 PM
Unknown Object (File)
Sun, Nov 24, 11:43 AM
Unknown Object (File)
Sun, Nov 24, 4:47 AM
Unknown Object (File)
Thu, Nov 21, 8:19 AM
Unknown Object (File)
Wed, Nov 20, 4:52 AM
Unknown Object (File)
Wed, Nov 20, 4:25 AM
Unknown Object (File)
Wed, Nov 20, 2:38 AM
Unknown Object (File)
Wed, Nov 20, 2:18 AM
Subscribers

Details

Summary

Repurpose ArcanistClosingCallParenthesesXHPASTLinterRule (and rename it to ArcanistCallParenthesesXHPASTLinterRule) to ensure that there is no spacing before opening parenthesis in function calls.

Test Plan

Added test case.

Diff Detail

Repository
rARC Arcanist
Branch
master
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 7500
Build 8040: [Placeholder Plan] Wait for 30 Seconds
Build 8039: arc lint + arc unit

Event Timeline

joshuaspence retitled this revision from to Add a linter rule for spacing before opening parenthesis in function calls.
joshuaspence updated this object.
joshuaspence edited the test plan for this revision. (Show Details)
joshuaspence added a reviewer: epriestley.
epriestley edited edge metadata.

One inline thing I think?

src/lint/linter/xhpast/rules/ArcanistCallParenthesesXHPASTLinterRule.php
32

I think this string is wrong, and actually testing for space before the opening parenthesis?

This revision is now accepted and ready to land.Aug 5 2015, 3:57 PM
joshuaspence marked an inline comment as done.
joshuaspence edited edge metadata.

Fix lint message

This revision was automatically updated to reflect the committed changes.