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
F19814690: D13796.diff
Wed, Mar 4, 3:18 PM
F19749047: D13796.id33337.diff
Sun, Feb 15, 7:56 PM
F19530996: D13796.id.diff
Jan 20 2026, 1:43 AM
F19527470: D13796.id.diff
Jan 19 2026, 1:45 AM
F19511780: D13796.id33318.diff
Jan 12 2026, 7:36 AM
F19511779: D13796.id33318.diff
Jan 12 2026, 7:36 AM
F19268439: D13796.id33336.diff
Dec 22 2025, 9:06 PM
F19051554: D13796.id33318.diff
Nov 28 2025, 1:16 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 7491
Build 8022: [Placeholder Plan] Wait for 30 Seconds
Build 8021: 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.