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
F14769767: D12854.diff
Thu, Jan 23, 8:43 PM
Unknown Object (File)
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
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
Branch
master
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 6050
Build 6070: [Placeholder Plan] Wait for 30 Seconds

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.