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
F15384939: D13857.diff
Fri, Mar 14, 9:14 PM
Unknown Object (File)
Mon, Mar 3, 10:46 PM
Unknown Object (File)
Fri, Feb 28, 10:00 PM
Unknown Object (File)
Feb 8 2025, 9:55 PM
Unknown Object (File)
Feb 8 2025, 9:55 PM
Unknown Object (File)
Feb 8 2025, 9:55 PM
Unknown Object (File)
Feb 8 2025, 9:55 PM
Unknown Object (File)
Feb 2 2025, 3:55 PM
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.