]> khamidou — GitHub mirrors - arcanist.git/commit
Lint dynamic string usage in parameters treated as safe
authorvrana <jakubv@fb.com>
Sat, 2 Feb 2013 20:33:22 +0000 (12:33 -0800)
committervrana <jakubv@fb.com>
Sun, 3 Feb 2013 00:26:52 +0000 (16:26 -0800)
commit03199df925f50368333352f1c644a0684bdf6893
treec4c75c828cee7ac8f05e2425b368c487ef64fb5e
parent39cef6cb991a75307a5ad2ae9b45def6e362150e
Lint dynamic string usage in parameters treated as safe

Summary:
This disallows code like this:

  $cmd = 'ls';
  execx($cmd);

But I guess it's not that big deal?

Test Plan: Linted whole Arcanist and Phabricator codebases, most parts looks fixable.

Reviewers: epriestley

CC: nh, aran, Korvin
Differential Revision: https://secure.phabricator.com/D4794
src/lint/linter/ArcanistPhutilXHPASTLinter.php