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
F18854426: D12854.id30924.diff
Sat, Nov 1, 12:13 AM
F18834198: D12854.id31001.diff
Sun, Oct 26, 7:12 AM
F18833515: D12854.id.diff
Sun, Oct 26, 4:07 AM
F18826448: D12854.diff
Fri, Oct 24, 4:02 AM
F18780737: D12854.id31001.diff
Sun, Oct 12, 7:17 PM
F18780736: D12854.id30924.diff
Sun, Oct 12, 7:17 PM
F18658170: D12854.id31001.diff
Sep 23 2025, 5:10 AM
F18628990: D12854.diff
Sep 16 2025, 7:46 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.