HomePhabricator

Add a `LINT_CONSTRUCTOR_PARENTHESES` rule to `ArcanistXHPASTLinter`

Description

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

Details

Provenance
joshuaspenceAuthored on
joshuaspencePushed on Oct 7 2014, 1:02 PM
Reviewer
Blessed Reviewers
Differential Revision
D10597: Add a `LINT_CONSTRUCTOR_PARENTHESES` rule to `ArcanistXHPASTLinter`
Parents
rARCb1112e73c463: Minor linter fixes
Branches
Unknown
Tags
Unknown

Event Timeline