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
F19826515: D12854.id30924.diff
Sun, Mar 8, 8:52 PM
F19824599: D12854.id30924.diff
Sun, Mar 8, 1:03 AM
F19821216: D12854.id30924.diff
Fri, Mar 6, 7:50 PM
F19819825: D12854.id31002.diff
Fri, Mar 6, 9:14 AM
F19755452: D12854.id.diff
Tue, Feb 17, 4:33 PM
F19639193: D12854.diff
Feb 5 2026, 5:01 PM
F19607386: D12854.id31001.diff
Feb 3 2026, 11:18 AM
F19531521: D12854.diff
Jan 20 2026, 5:31 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 6002
Build 6022: [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.