Bug 1483539 - [mozlint] Log a success message from the treeherder formatter when all lints succeed, r=sylvestre
authorAndrew Halberstadt <ahalberstadt@mozilla.com>
Wed, 15 Aug 2018 14:17:06 +0000
changeset 487195 e046ec0ce93d1b9d79c2c844b9135b03437f3f57
parent 487194 d25d4da4aad2c680854931bdde183f0e2f8948c7
child 487196 10d94a3e667fefcff59dc3d50e81c3e89c3ed215
push id9719
push userffxbld-merge
push dateFri, 24 Aug 2018 17:49:46 +0000
treeherdermozilla-beta@719ec98fba77 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssylvestre
bugs1483539
milestone63.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1483539 - [mozlint] Log a success message from the treeherder formatter when all lints succeed, r=sylvestre Differential Revision: https://phabricator.services.mozilla.com/D3415
python/mozlint/mozlint/formatters/treeherder.py
--- a/python/mozlint/mozlint/formatters/treeherder.py
+++ b/python/mozlint/mozlint/formatters/treeherder.py
@@ -23,9 +23,11 @@ class TreeherderFormatter(object):
                 assert isinstance(err, ResultContainer)
 
                 d = {s: getattr(err, s) for s in err.__slots__}
                 d["column"] = ":%s" % d["column"] if d["column"] else ""
                 d['level'] = d['level'].upper()
                 d['rule'] = d['rule'] or d['linter']
                 message.append(self.fmt.format(**d))
 
+        if not message:
+            message.append("No lint issues found.")
         return "\n".join(message)