Page MenuHomePhabricator

Add a linter rule to prevent exceptions from being thrown in a toString method
ClosedPublic

Authored by joshuaspence on May 15 2015, 6:19 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Jan 24, 4:31 AM
Unknown Object (File)
Fri, Jan 24, 4:31 AM
Unknown Object (File)
Fri, Jan 24, 4:31 AM
Unknown Object (File)
Fri, Jan 24, 4:31 AM
Unknown Object (File)
Fri, Jan 24, 4:31 AM
Unknown Object (File)
Fri, Jan 24, 12:52 AM
Unknown Object (File)
Thu, Jan 23, 8:43 PM
Unknown Object (File)
Wed, Jan 22, 5:54 PM
Subscribers

Details

Summary

Fixes T8207. It is not possible to throw an exception from within the __toString() method. Add a linter rule to prevent this from happening.

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 linter rule to prevent exceptions from being thrown in a toString method.
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.May 17 2015, 1:03 PM
This revision was automatically updated to reflect the committed changes.