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
Unknown Object (File)
Mon, Sep 30, 6:36 PM
Unknown Object (File)
Tue, Sep 24, 2:44 AM
Unknown Object (File)
Sun, Sep 22, 12:17 AM
Unknown Object (File)
Sun, Sep 22, 12:17 AM
Unknown Object (File)
Sun, Sep 22, 12:17 AM
Unknown Object (File)
Sun, Sep 22, 12:17 AM
Unknown Object (File)
Sun, Sep 22, 12:08 AM
Unknown Object (File)
Aug 28 2024, 4:47 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.