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
F14074679: D13796.diff
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
Unknown Object (File)
Wed, Nov 20, 2:18 AM
Unknown Object (File)
Wed, Nov 20, 12:19 AM
Unknown Object (File)
Wed, Nov 20, 12:19 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
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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.