Page MenuHomePhabricator

Add a `LINT_CONSTRUCTOR_PARENTHESES` rule to `ArcanistXHPASTLinter`
ClosedPublic

Authored by joshuaspence on Sep 28 2014, 12:44 PM.
Tags
None
Referenced Files
F15463554: D10597.id.diff
Wed, Apr 2, 12:44 AM
F15461475: D10597.id25433.diff
Tue, Apr 1, 8:34 AM
F15427570: D10597.diff
Sun, Mar 23, 2:58 PM
F15403644: D10597.diff
Tue, Mar 18, 4:16 AM
F15403205: D10597.id25433.diff
Tue, Mar 18, 2:12 AM
F15294444: D10597.diff
Wed, Mar 5, 8:12 AM
Unknown Object (File)
Feb 28 2025, 2:29 AM
Unknown Object (File)
Jan 26 2025, 2:03 PM
Subscribers

Details

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.

Diff Detail

Repository
rARC Arcanist
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

joshuaspence retitled this revision from to Add a `LINT_CONSTRUCTOR_PARENTHESES` rule to `ArcanistXHPASTLinter`.
joshuaspence updated this object.
joshuaspence edited the test plan for this revision. (Show Details)
joshuaspence added a reviewer: epriestley.
epriestley edited edge metadata.
This revision is now accepted and ready to land.Sep 28 2014, 12:53 PM
This revision was automatically updated to reflect the committed changes.