]> khamidou — GitHub mirrors - arcanist.git/commit
Display other locations of Reused lint errors
authorvrana <jakubv@fb.com>
Fri, 8 Feb 2013 23:04:32 +0000 (15:04 -0800)
committervrana <jakubv@fb.com>
Fri, 8 Feb 2013 23:49:50 +0000 (15:49 -0800)
commitca37bfb2ab49c4ea9dfcd26641b3fa45ea98baf2
treef02070c9f39fc208b32ae647883dd8705510c6a2
parent4c35af92830b3962631c41cedaeea8bbe7278d42
Display other locations of Reused lint errors

Summary: It's not trivial to find them inside 700+ lines long functions.

Test Plan:
Linted `reused-iterators.lint-test` renamed to `_.php`, saw other locations.
Repeated for `reused-local.lint-test`.
Repeated for `duplicate-key-in-array.lint-test`.

Reviewers: epriestley

Reviewed By: epriestley

CC: aran, Korvin
Differential Revision: https://secure.phabricator.com/D4871
src/lint/linter/ArcanistLinter.php
src/lint/linter/ArcanistXHPASTLinter.php
src/lint/linter/__tests__/xhpast/duplicate-key-in-array.lint-test