Bug 1287834 - [mozlint] Fix regression preventing specific linters from being run, r?smacleod draft
authorAndrew Halberstadt <ahalberstadt@mozilla.com>
Tue, 19 Jul 2016 11:50:33 -0400
changeset 389557 deba969923b79d0cf04411e26c01c4008717785d
parent 388900 0fbdcd21fad76a00328e67875c6f40dc219235f4
child 525790 1c22d4cacfa7ee9b425b7b1f2ad57f520dac48f6
push id23447
push userahalberstadt@mozilla.com
push dateTue, 19 Jul 2016 15:56:49 +0000
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)