]> khamidou — GitHub mirrors - arcanist.git/commit
Render chevrons and carets in lint output for messages without "original" text
authorepriestley <git@epriestley.com>
Fri, 1 Jun 2012 22:53:16 +0000 (15:53 -0700)
committerepriestley <git@epriestley.com>
Fri, 1 Jun 2012 22:53:16 +0000 (15:53 -0700)
commitc2788c8797118c4acf9d242bc819c24103032244
treedc6b3917b7a8b3f3a78224c566982450a1fcdfeb
parent0b45ec30bed1ee15f29e24504a1cfcb996837964
Render chevrons and carets in lint output for messages without "original" text

Summary:
If a message has only "line", or "line" and "char", we don't point out the location in the context block.

When a message includes "line", show chevrons on the line.
When a message includes "line" and "char", show chevrons on the line and a caret on the next line.

Test Plan: Ran regex linters to capture line, line+char, and normal linters to capture everything. Output appeared sane.

Reviewers: csilvers, vrana, btrahan

Reviewed By: csilvers

CC: aran
Differential Revision: https://secure.phabricator.com/D2642
src/lint/ArcanistLintRenderer.php
src/lint/linter/ArcanistScriptAndRegexLinter.php