]> khamidou — GitHub mirrors - arcanist.git/commit
arc lint: include lint errors in unresolved messages
authorAndrew Gallagher <agallagher@fb.com>
Mon, 27 Jun 2011 20:29:36 +0000 (13:29 -0700)
committerAndrew Gallagher <agallagher@fb.com>
Mon, 27 Jun 2011 21:17:17 +0000 (14:17 -0700)
commit37152662091f69e4803025935a02181fdd1b67a1
tree02eb2f29edd67e780d23326907b1281181c559af
parenta30a9a8353e2d9e2872230c3aba5a645bac2c910
arc lint: include lint errors in unresolved messages

Summary:
Currently, when arc-lint processes lint warnings and errors, it
accumulates the warnings into an "unresolvedMessages" array.  As
soon as it sees an errors, it breaks out of the loop that does the
collection and returns, causing individual lint errors messages to
not show up in differential.

This diff collects all lint warning and error messages into the
unresolved array.

Test Plan:
arc-diff on patch that had lint errors.  Verified that,
after this change, linte errors messages showed in differential.

Reviewed By: epriestley
Reviewers: jungejason, epriestley
Commenters: jungejason
CC: aran, epriestley, jungejason
Differential Revision: 543
src/workflow/lint/ArcanistLintWorkflow.php