]> khamidou — GitHub mirrors - arcanist.git/commit
Call willLintPath() hook from PhutilLinter
authorepriestley <git@epriestley.com>
Sat, 18 Jan 2014 05:30:18 +0000 (21:30 -0800)
committerepriestley <git@epriestley.com>
Sat, 18 Jan 2014 05:30:18 +0000 (21:30 -0800)
commita247e2109394f9b235e07d02c6c0e12b5cd52e26
tree585a2595948cd6182a837e462101a8521e9c249c
parent7ce0c8e84e8d30c6d177e8d6fc48e3f5c8ae2c74
Call willLintPath() hook from PhutilLinter

Summary:
Some callpaths end up here, which doesn't cause the internal linter's willLintPath() method. This can mean its `activePath` is set wrong, which results in us raising lint for the wrong file.

Particularly, if you apply D7979 (diff 18069) and `arc lint` it, you'll get a syntax error message in the wrong file.

Test Plan: Applied D7979 and linted it, got proper error message.

Reviewers: btrahan

Reviewed By: btrahan

CC: aarwine, aran
Differential Revision: https://secure.phabricator.com/D7988
src/lint/linter/ArcanistPhutilXHPASTLinter.php