Bug 1287834 - [mozlint] Fix regression preventing specific linters from being run, r=smacleod
authorAndrew Halberstadt <ahalberstadt@mozilla.com>
Tue, 19 Jul 2016 11:50:33 -0400
changeset 330584 81925c21719eec3ba5c0a9f4ebfb06cb500571f1
parent 330583 3096768ade50b864047c639d9225ff3a0df88d56
child 330585 88e5ef869df627fcef0321500140070a1035c4d2
push id9858
push userjlund@mozilla.com
push dateMon, 01 Aug 2016 14:37:10 +0000
treeherdermozilla-aurora@203106ef6cb6 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssmacleod
bugs1287834
milestone50.0a1
Bug 1287834 - [mozlint] Fix regression preventing specific linters from being run, r=smacleod MozReview-Commit-ID: KYhC6SEySC3
python/mozlint/mozlint/cli.py
--- a/python/mozlint/mozlint/cli.py
+++ b/python/mozlint/mozlint/cli.py
@@ -101,17 +101,17 @@ class VCFiles(object):
             cmd = ['hg', 'status', '-amn']
         elif self.is_git(self):
             cmd = ['git', 'diff', '--name-only']
         else:
             return []
         return subprocess.check_output(cmd).split()
 
 
-def find_linters(self, linters=None):
+def find_linters(linters=None):
     lints = []
     for search_path in SEARCH_PATHS:
         if not os.path.isdir(search_path):
             continue
 
         files = os.listdir(search_path)
         for f in files:
             name, ext = os.path.splitext(f)