]> khamidou — GitHub mirrors - arcanist.git/commit
Make lint output look like a compiler
authorEdward Speyer <edward@fb.com>
Wed, 29 Jun 2011 01:14:07 +0000 (18:14 -0700)
committerEdward Speyer <edward@fb.com>
Fri, 9 Mar 2012 19:20:08 +0000 (11:20 -0800)
commit8f76800efc0e4eba65e47e8f17adc728408f717a
tree27e077ce6a5769fa9e8ddfdc6f58ced223135f42
parente462f2e84ec75d0ab279953cc307c8897928df88
Make lint output look like a compiler

Summary:
Make lint output look like gcc errors / grep output; a format used by
editors to jump from a compiler error to a file+line of code which
triggered the error.

Test Plan:
In vim, I ran:

  :set makeprg=~/checkouts/devtools/arcanist/bin/arc\ lint\ --output\ compiler

Then:

  :make

And was able to jump directly to problematic lines of code.

Reviewers: jungejason

Reviewed By: jungejason

CC: aran, edwardspeyer, jungejason, codeblock, tuomaspelkonen, epriestley
Differential Revision: https://secure.phabricator.com/D550
src/lint/renderer/ArcanistLintLikeCompilerRenderer.php [new file with mode: 0644]
src/lint/renderer/__init__.php
src/workflow/lint/ArcanistLintWorkflow.php