Page MenuHomePhabricator

Add a linter rule for the use of `parse_str`
ClosedPublic

Authored by joshuaspence on Aug 11 2015, 2:00 AM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, May 1, 12:11 AM
Unknown Object (File)
Thu, Apr 11, 9:10 AM
Unknown Object (File)
Mar 29 2024, 8:25 PM
Unknown Object (File)
Mar 5 2024, 5:42 AM
Unknown Object (File)
Jan 28 2024, 8:07 AM
Unknown Object (File)
Jan 28 2024, 8:06 AM
Unknown Object (File)
Jan 28 2024, 8:06 AM
Unknown Object (File)
Jan 28 2024, 8:06 AM
Subscribers

Details

Summary

The use of the parse_str method (when called without sepcifying a second parameter) hinders static analysis. Specifically, the parse_str('...') behaves similarly to extract.

Test Plan

Added unit tests.

Diff Detail

Repository
rARC Arcanist
Branch
master
Lint
Lint Passed
Unit
Test Failures
Build Status
Buildable 7580
Build 8200: [Placeholder Plan] Wait for 30 Seconds
Build 8199: arc lint + arc unit

Event Timeline

joshuaspence retitled this revision from to Add a linter rule for the use of `parse_str`.
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.Aug 11 2015, 2:56 AM
This revision was automatically updated to reflect the committed changes.