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, Jan 30, 4:48 AM
Unknown Object (File)
Thu, Jan 30, 4:48 AM
Unknown Object (File)
Wed, Jan 29, 8:03 PM
Unknown Object (File)
Wed, Jan 29, 8:02 PM
Unknown Object (File)
Wed, Jan 29, 7:34 PM
Unknown Object (File)
Wed, Jan 29, 1:35 AM
Unknown Object (File)
Tue, Jan 28, 7:49 AM
Unknown Object (File)
Sun, Jan 26, 2:35 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.