]> khamidou — GitHub mirrors - arcanist.git/commit
Allow spaces after the `.` operator if followed by a comment.
authorJoshua Spence <josh@joshuaspence.com>
Mon, 9 Jun 2014 19:25:14 +0000 (12:25 -0700)
committerepriestley <git@epriestley.com>
Mon, 9 Jun 2014 19:25:14 +0000 (12:25 -0700)
commit57f4bbae42c55b8874289bbb267e41a6ec33d3e8
tree2df0675ab0066519598305c036996e4857c9e864
parent833ce4515566651cbd7e1a19f10cb9aa7b7f02bb
Allow spaces after the `.` operator if followed by a comment.

Summary: Currently, `'foo'.    // Some comment` is not allowed by the `ArcanistXHPASTLinter::LINT_BINARY_EXPRESSION_SPACING` rule. I believe that in the case of a trailing comment, we //should// allow whitespace after the `.` operator.

Test Plan: Wrote and executed a unit test for this case.

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley, #blessed_reviewers

Subscribers: epriestley, Korvin

Differential Revision: https://secure.phabricator.com/D9438
src/lint/linter/ArcanistXHPASTLinter.php
src/lint/linter/__tests__/xhpast/space-around-more-operators.lint-test