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)
Thu, Apr 11, 9:10 AM
Unknown Object (File)
Fri, Mar 29, 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
Unknown Object (File)
Jan 15 2024, 3:17 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
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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.