mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-11 12:25:53 +00:00
7c26ce739c
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 |
||
---|---|---|
.. | ||
mozlint | ||
test | ||
setup.py |