]> khamidou — GitHub mirrors - arcanist.git/commit
Add a `LINT_CONSTRUCTOR_PARENTHESES` rule to `ArcanistXHPASTLinter`
authorJoshua Spence <josh@joshuaspence.com>
Tue, 7 Oct 2014 12:59:03 +0000 (23:59 +1100)
committerJoshua Spence <josh@joshuaspence.com>
Tue, 7 Oct 2014 12:59:03 +0000 (23:59 +1100)
commite54725ec891894510865f0a0671c3e62503a4dd4
tree42725ae9905f64c0daa27dfd460c4d6e8fd41053
parentb1112e73c463a2304c387ddce751ff5137de87f2
Add a `LINT_CONSTRUCTOR_PARENTHESES` rule to `ArcanistXHPASTLinter`

Summary: Adds an `ArcanistXHPASTLinter::LINT_CONSTRUCTOR_PARENTHESES` rule which ensures that (possibly empty) parentheses are used when calling a constructor.

Test Plan: Added test cases.

Reviewers: #blessed_reviewers, epriestley

Reviewed By: #blessed_reviewers, epriestley

Subscribers: epriestley, Korvin

Differential Revision: https://secure.phabricator.com/D10597
src/lint/linter/ArcanistXHPASTLinter.php
src/lint/linter/__tests__/xhpast/constructor-parentheses.lint-test [new file with mode: 0644]