]> khamidou — GitHub mirrors - arcanist.git/commit
Improve the declaration parentheses linting
authorJoshua Spence <josh@joshuaspence.com>
Wed, 22 Jul 2015 20:43:35 +0000 (06:43 +1000)
committerJoshua Spence <josh@joshuaspence.com>
Wed, 22 Jul 2015 20:44:10 +0000 (06:44 +1000)
commite286ef66c8ce9334aad9820e4451b16c4f75a647
tree9c637ef3d36b87768e4a86a146f807c84bfc64dc
parentb7e87e959cf470a5955a9381067be6b29034e652
Improve the declaration parentheses linting

Summary: Improve `ArcanistClosingDeclarationParenthesesXHPASTLinterRule` (and rename it to `ArcanistDeclarationParenthesesXHPASTLinterRule`) to ensure that there is no whitespace before the opening parenthesis of a function/method declaration.

Test Plan: Added test cases.

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley, #blessed_reviewers

Subscribers: epriestley, Korvin

Differential Revision: https://secure.phabricator.com/D13675
src/__phutil_library_map__.php
src/lint/linter/__tests__/xhpast/decl-parens-hug-closing.lint-test
src/lint/linter/xhpast/rules/ArcanistDeclarationParenthesesXHPASTLinterRule.php [moved from src/lint/linter/xhpast/rules/ArcanistClosingDeclarationParenthesesXHPASTLinterRule.php with 64% similarity]