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
F15528027: D10597.id25433.diff
Tue, Apr 22, 8:25 AM
F15499722: D10597.id25433.diff
Sun, Apr 13, 3:07 PM
F15499716: D10597.id.diff
Sun, Apr 13, 3:07 PM
F15499703: D10597.id25574.diff
Sun, Apr 13, 3:07 PM
F15476862: D10597.id25574.diff
Mon, Apr 7, 9:53 AM
F15463554: D10597.id.diff
Wed, Apr 2, 12:44 AM
F15461475: D10597.id25433.diff
Tue, Apr 1, 8:34 AM
F15427570: D10597.diff
Mar 23 2025, 2:58 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.