]> khamidou — GitHub mirrors - arcanist.git/commit
Allow specifying multiple locations of the same lint error
authorvrana <jakubv@fb.com>
Thu, 10 Jan 2013 23:03:33 +0000 (15:03 -0800)
committervrana <jakubv@fb.com>
Thu, 10 Jan 2013 23:35:11 +0000 (15:35 -0800)
commita82493a84d327f0651077180d6e448ba7ede9023
treebbe04cb62debb7f0ea9ba6a4e338e6354c470146
parent80cd881fb12d1dc9c42be6c3a12c7cc185fc8600
Allow specifying multiple locations of the same lint error

Summary:
Some errors (duplicate declaration, invalid number of arguments) have more related places.
We need to notify user if he changes any related place.
This could be currently achieved by triggering errors instead of warnings or by including both files in the range (impossible if the locations are in different files) or by issuing multiple errors.
All options are too aggressive.

Test Plan: Issued error on unmodified line with other location on modified line.

Reviewers: epriestley

CC: aran, Korvin
Differential Revision: https://secure.phabricator.com/D4392
src/lint/ArcanistLintMessage.php
src/lint/engine/ArcanistLintEngine.php
src/lint/linter/ArcanistConduitLinter.php
src/lint/linter/ArcanistLinter.php