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
F14760367: D12854.id30924.diff
Wed, Jan 22, 5:54 PM
Unknown Object (File)
Sat, Jan 11, 6:22 AM
Unknown Object (File)
Dec 22 2024, 1:52 PM
Unknown Object (File)
Dec 13 2024, 12:32 AM
Unknown Object (File)
Dec 5 2024, 8:33 AM
Unknown Object (File)
Dec 4 2024, 7:12 AM
Unknown Object (File)
Dec 3 2024, 3:42 AM
Unknown Object (File)
Nov 26 2024, 9:35 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.