]> khamidou — GitHub mirrors - arcanist.git/commit
Complain about Reuse of By-ref Iterators
authorAndrew Chen <achen1@fb.com>
Tue, 5 Mar 2013 15:45:02 +0000 (07:45 -0800)
committerAndrew Chen <achen1@fb.com>
Tue, 5 Mar 2013 15:45:02 +0000 (07:45 -0800)
commit263cf9a95f80c6ed3725043485c4ba475196c646
tree571f7eb7ce31bf80bcc63aa5641e90efd6fcc9d4
parenteed7e70bb16d6c609aa6d25e159c6fea503bd6a4
Complain about Reuse of By-ref Iterators

Summary:
Added a lint rule that warns about reusing iterator reference
variables.

Test Plan:
- Add a file with examples found in with https://secure.phabricator.com/T2536
- Did not make a unit test yet

Reviewers: vrana, bill, epriestley

Reviewed By: epriestley

CC: aran, epriestley, Korvin
Maniphest Tasks: T2536

Differential Revision: https://secure.phabricator.com/D5179
src/lint/linter/ArcanistXHPASTLinter.php
src/lint/linter/__tests__/xhpast/reused-iterator-reference.lint-test [new file with mode: 0644]
src/lint/linter/__tests__/xhpast/undeclared-variables.lint-test