]> khamidou — GitHub mirrors - arcanist.git/commit
Show lint warnings for non-"line-able" files
authorAndrew Gallagher <agallagher@fb.com>
Thu, 27 Oct 2011 22:26:23 +0000 (15:26 -0700)
committerAndrew Gallagher <agallagher@fb.com>
Fri, 28 Oct 2011 20:49:58 +0000 (13:49 -0700)
commitb2cd18252701be2093b52652fb3d1d94c5df571e
tree5fe6e3856be4542b45147931c4c76854093a8e4a
parent3d29a9122c8af0dbd435e5a8a74d71c4dd0dbf7a
Show lint warnings for non-"line-able" files

Summary:
Currently, lint messages are only included if they are errors or
if they affect lines which the diff changed.  The implementation
of this caused issues for non-text files (e.g. binaries), as line
change information is not available, and the corresponding lint
messages were dropped (for non-errors).

In this diff, only lint messages concerning text files are dropped
based on this line filtering.

Test Plan: arc lint with binary file

Reviewers: jungejason, epriestley

Reviewed By: epriestley

CC: aran, aravindn, andrewjcg, liat, epriestley
Differential Revision: 1061
src/lint/engine/base/ArcanistLintEngine.php
src/workflow/base/ArcanistBaseWorkflow.php
src/workflow/base/__init__.php
src/workflow/lint/ArcanistLintWorkflow.php