Bug 1480370 - pass checks to _get_clang_tidy_command. draft
authorAndi-Bogdan Postelnicu <bpostelnicu@mozilla.com>
Thu, 02 Aug 2018 13:48:29 +0300 (2018-08-02)
changeset 825806 a50bc038edec96dbae2ddff7b3eb1e683596498c
parent 824607 0d72c7996d60a7c07e35c5f90d78b02a47d17460
push id118174
push userbmo:bpostelnicu@mozilla.com
push dateThu, 02 Aug 2018 10:50:23 +0000 (2018-08-02)
bugs1480370
milestone63.0a1
Bug 1480370 - pass checks to _get_clang_tidy_command. MozReview-Commit-ID: JO9nr59WYk5
python/mozbuild/mozbuild/mach_commands.py
--- a/python/mozbuild/mozbuild/mach_commands.py
+++ b/python/mozbuild/mozbuild/mach_commands.py
@@ -1695,17 +1695,17 @@ class StaticAnalysis(MachCommandBase):
                 total = total + 1
 
         if not total:
             return 0
 
         cwd = self.topobjdir
         self._compilation_commands_path = self.topobjdir
         args = self._get_clang_tidy_command(
-            check=checks, header_filter=header_filter, sources=source, jobs=jobs, fix=fix)
+            checks=checks, header_filter=header_filter, sources=source, jobs=jobs, fix=fix)
 
         monitor = StaticAnalysisMonitor(self.topsrcdir, self.topobjdir, total)
 
         footer = StaticAnalysisFooter(self.log_manager.terminal, monitor)
         with StaticAnalysisOutputManager(self.log_manager, monitor, footer) as output:
             rc = self.run_process(args=args, line_handler=output.on_line, cwd=cwd)
 
             self.log(logging.WARNING, 'warning_summary',