Page MenuHomePhabricator

Improve the "unexpected return value" linter rule
ClosedPublic

Authored by joshuaspence on Nov 23 2015, 10:52 PM.
Tags
None
Referenced Files
Unknown Object (File)
May 10 2025, 5:16 AM
Unknown Object (File)
Apr 25 2025, 9:38 AM
Unknown Object (File)
Apr 25 2025, 12:07 AM
Unknown Object (File)
Apr 20 2025, 9:04 AM
Unknown Object (File)
Apr 18 2025, 1:12 AM
Unknown Object (File)
Apr 15 2025, 9:56 PM
Unknown Object (File)
Apr 13 2025, 10:27 AM
Unknown Object (File)
Apr 10 2025, 9:54 AM
Subscribers

Details

Summary

Return values within constructors are acceptable if they are within a closure or anonymous function.

Test Plan

Added a test case.

Diff Detail

Repository
rARC Arcanist
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

joshuaspence retitled this revision from to Improve the "unexpected return value" linter rule.
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.Nov 23 2015, 10:52 PM
This revision was automatically updated to reflect the committed changes.