]> khamidou — GitHub mirrors - arcanist.git/commit
Enable raising lint warnings for mulitple lines at once
authorvrana <jakubv@fb.com>
Sun, 22 Jul 2012 19:52:10 +0000 (12:52 -0700)
committervrana <jakubv@fb.com>
Sun, 22 Jul 2012 20:26:44 +0000 (13:26 -0700)
commit1914bce11ecd594e236d3fef7688fb7d71ddf1c1
tree013d786006d69fcaba6ca817474cfc546fd035c9
parentd2f0ffac7d956eb5e4b68c43c344da31dfa5941e
Enable raising lint warnings for mulitple lines at once

Summary:
We have a lint rule checking if some string is too long.
This string can span multiple lines.
If we report a warning at the first line then it is muted if the first line wasn't modified.
We need to say that this whole block is wrong and report it when at least one line from the block was modified.

Test Plan: Changed a lint rule to call `raiseLintAtLines()` and verified that the warning is reported even if the changed line isn't first.

Reviewers: epriestley

Reviewed By: epriestley

CC: aran, Korvin
Differential Revision: https://secure.phabricator.com/D3029
src/lint/engine/ArcanistLintEngine.php