Bug 1518959 - Don't format Java files by default; r=sylvestre
authorEhsan Akhgari <ehsan@mozilla.com>
Thu, 10 Jan 2019 09:05:54 +0000
changeset 453220 3bd12b1d762b4079ddefbe86012a88e0704d6734
parent 453219 99a977d519a0b78e267d3dce4afb009b8d3be769
child 453221 3bd1a8ffe4a900c980f82ae6c868e31ab20e933b
push id35349
push userbtara@mozilla.com
push dateThu, 10 Jan 2019 17:19:27 +0000
treeherdermozilla-central@a51746f37520 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssylvestre
bugs1518959
milestone66.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 1518959 - Don't format Java files by default; r=sylvestre Differential Revision: https://phabricator.services.mozilla.com/D16115
python/mozbuild/mozbuild/mach_commands.py
--- a/python/mozbuild/mozbuild/mach_commands.py
+++ b/python/mozbuild/mozbuild/mach_commands.py
@@ -1642,17 +1642,17 @@ class StaticAnalysisMonitor(object):
         return (warning, True)
 
 
 @CommandProvider
 class StaticAnalysis(MachCommandBase):
     """Utilities for running C++ static analysis checks and format."""
 
     # List of file extension to consider (should start with dot)
-    _format_include_extensions = ('.cpp', '.c', '.cc', '.h', '.java')
+    _format_include_extensions = ('.cpp', '.c', '.cc', '.h')
     # File contaning all paths to exclude from formatting
     _format_ignore_file = '.clang-format-ignore'
 
     @Command('static-analysis', category='testing',
              description='Run C++ static analysis checks')
     def static_analysis(self):
         # If not arguments are provided, just print a help message.
         mach = Mach(os.getcwd())