]> khamidou — GitHub mirrors - arcanist.git/commit
Use readable path in lint messages
authorvrana <jakubv@fb.com>
Tue, 7 Feb 2012 17:57:26 +0000 (09:57 -0800)
committervrana <jakubv@fb.com>
Tue, 7 Feb 2012 18:22:50 +0000 (10:22 -0800)
commit35837a39d2e568931cad2f4e5920d070f39cfe56
tree7ea4963ff8b5941ce3c5883cd7fbd122475b1e38
parentd3b0b009ce3615b8021e990d607aa409797787b9
Use readable path in lint messages

Summary:
Some linters return absolute path.
It causes separate lint messages for the same file.
Also lint messages aren't properly bound in Phabricator.

I've preferred changing addLintMessage() to fixing all linters because it is
more robust.

Test Plan: arc lint of a file with lint problem from linter using absolute paths

Reviewers: epriestley

Reviewed By: epriestley

CC: aran, epriestley
Differential Revision: https://secure.phabricator.com/D1589
src/lint/linter/base/ArcanistLinter.php
src/lint/linter/base/__init__.php