Bug 1384273 - Get lint root dir from mach; r?ahal draft
authorTom Prince <mozilla@hocat.ca>
Sat, 22 Jul 2017 01:28:34 -0600
changeset 615327 35b6e672201fa72c4a2d7c55bba5b9b65b836484
parent 613116 e99e3e62cfa8bbc7d430f64d4fbdf77ffb81e979
child 639141 68d6fd2b5ce65b49933ec26baa20d4940d96b3eb
push id70317
push userbmo:mozilla@hocat.ca
push dateTue, 25 Jul 2017 20:03:04 +0000
reviewersahal
bugs1384273
milestone56.0a1
Bug 1384273 - Get lint root dir from mach; r?ahal MozReview-Commit-ID: I6L6a9Sim49
tools/lint/mach_commands.py
--- a/tools/lint/mach_commands.py
+++ b/tools/lint/mach_commands.py
@@ -32,16 +32,17 @@ class MachCommands(MachCommandBase):
 
     @Command(
         'lint', category='devenv',
         description='Run linters.',
         parser=setup_argument_parser)
     def lint(self, *runargs, **lintargs):
         """Run linters."""
         from mozlint import cli
+        lintargs.setdefault('root', self.topsrcdir)
         lintargs['exclude'] = ['obj*']
         cli.SEARCH_PATHS.append(here)
         self._activate_virtualenv()
         return cli.run(*runargs, **lintargs)
 
     @Command('eslint', category='devenv',
              description='Run eslint or help configure eslint for optimal development.')
     @CommandArgument('paths', default=None, nargs='*',