mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-30 14:17:36 -10:00
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