Bug 1384273 - Get lint root dir from mach; r=ahal
authorTom Prince <mozilla@hocat.ca>
Sat, 22 Jul 2017 01:28:34 -0600
changeset 422252 8954e1ad4d825d361e5c65df9b61f90ba0b33354
parent 422251 df6fd4e616d9c09d2e8667ac8943397a5f774a6d
child 422253 61d1367ef2f1afd66687fbf807113be9ca2378ae
push id1517
push userjlorenzo@mozilla.com
push dateThu, 14 Sep 2017 16:50:54 +0000
treeherdermozilla-release@3b41fd564418 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersahal
bugs1384273
milestone56.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 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='*',