gecko-dev/python/mozlint
Andrew Halberstadt 7c26ce739c Bug 1316925 - Keep track of failed linters in stylish formatter summary, r=jgraham
This replaces the "return_code" property on the LintRoller object with a list of "failed"
linters. This is a bit more useful as it lets us know exactly which linters had a problem
(whereas previously we just knew *something* went wrong). This patch pushes determining
the return code back into cli.py, which I think is fine.

In addition, we now pass the list of failed linters into the formatter. This allows us to
clarify exactly how many linters hit a failure which is a lot better than a seemingly
"successful" summary message.

Finally I also removed the "no files to lint" message because I've seen several people
confuse it for an error. I'll probably add it back as a debug log message when we switch
to using mozlog for output.

MozReview-Commit-ID: 4wyCeOZdOf8

--HG--
extra : rebase_source : 23810a8ab8dd9cbbad6b9e965ccff7214f947fbc
2016-11-14 11:56:46 -05:00
..
mozlint Bug 1316925 - Keep track of failed linters in stylish formatter summary, r=jgraham 2016-11-14 11:56:46 -05:00
test Bug 1316925 - Keep track of failed linters in stylish formatter summary, r=jgraham 2016-11-14 11:56:46 -05:00
setup.py Bug 1302796 - Add integration between structured logging and lints, r=ahal 2016-09-13 14:18:41 +01:00