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
F14029818: D10597.id25574.diff
Fri, Nov 8, 9:36 PM
F14015481: D10597.diff
Sun, Nov 3, 7:33 PM
F14003614: D10597.diff
Sat, Oct 26, 8:23 AM
F13974813: D10597.diff
Fri, Oct 18, 7:29 AM
F13971556: D10597.id.diff
Thu, Oct 17, 1:57 PM
F13967491: D10597.id25574.diff
Wed, Oct 16, 1:57 PM
Unknown Object (File)
Oct 4 2024, 8:02 AM
Unknown Object (File)
Sep 10 2024, 7:22 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.