]> khamidou — GitHub mirrors - arcanist.git/commit
Add a linter rule for variable reference spacing
authorJoshua Spence <josh@freelancer.com>
Mon, 30 Nov 2015 20:16:35 +0000 (07:16 +1100)
committerJoshua Spence <josh@freelancer.com>
Mon, 30 Nov 2015 20:20:03 +0000 (07:20 +1100)
commit87306cfe145336ed5aa83cf0c4891ca0f99dc544
tree3bb5381d4a039f21d77898f86ec4768cd58289df
parent578f540a92b1b78ca70b458244e39ea65f0c0ea8
Add a linter rule for variable reference spacing

Summary: Adds a linter rule for spacing after the `&` token, similar to `ArcanistUnaryPrefixExpressionSpacingXHPASTLinterRule`.

Test Plan: Added test cases.

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley, #blessed_reviewers

Subscribers: Korvin

Differential Revision: https://secure.phabricator.com/D14602
src/__phutil_library_map__.php
src/lint/linter/xhpast/rules/ArcanistVariableReferenceSpacingXHPASTLinterRule.php [new file with mode: 0644]
src/lint/linter/xhpast/rules/__tests__/ArcanistVariableReferenceSpacingXHPASTLinterRuleTestCase.php [new file with mode: 0644]
src/lint/linter/xhpast/rules/__tests__/variable-reference-spacing/function-call.lint-test [new file with mode: 0644]
src/lint/linter/xhpast/rules/__tests__/variable-reference-spacing/variable.lint-test [new file with mode: 0644]