diff options
-rw-r--r-- | apps/PRESUBMIT.py | 14 | ||||
-rw-r--r-- | chrome/browser/chromeos/extensions/PRESUBMIT.py | 14 | ||||
-rw-r--r-- | chrome/browser/extensions/PRESUBMIT.py | 7 | ||||
-rw-r--r-- | chrome/browser/ui/apps/PRESUBMIT.py | 14 | ||||
-rw-r--r-- | chrome/common/extensions/PRESUBMIT.py | 5 | ||||
-rw-r--r-- | chrome/renderer/extensions/PRESUBMIT.py | 14 |
6 files changed, 64 insertions, 4 deletions
diff --git a/apps/PRESUBMIT.py b/apps/PRESUBMIT.py new file mode 100644 index 0000000..627f282 --- /dev/null +++ b/apps/PRESUBMIT.py @@ -0,0 +1,14 @@ +# Copyright 2014 The Chromium Authors. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. + +"""Presubmit script for extensions and apps. + +See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts +for more details about the presubmit API built into depot_tools. +""" + +def CheckChangeOnUpload(input_api, output_api): + results = [] + results += input_api.canned_checks.CheckPatchFormatted(input_api, output_api) + return results diff --git a/chrome/browser/chromeos/extensions/PRESUBMIT.py b/chrome/browser/chromeos/extensions/PRESUBMIT.py new file mode 100644 index 0000000..627f282 --- /dev/null +++ b/chrome/browser/chromeos/extensions/PRESUBMIT.py @@ -0,0 +1,14 @@ +# Copyright 2014 The Chromium Authors. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. + +"""Presubmit script for extensions and apps. + +See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts +for more details about the presubmit API built into depot_tools. +""" + +def CheckChangeOnUpload(input_api, output_api): + results = [] + results += input_api.canned_checks.CheckPatchFormatted(input_api, output_api) + return results diff --git a/chrome/browser/extensions/PRESUBMIT.py b/chrome/browser/extensions/PRESUBMIT.py index 8a21b41..c8c16b5 100644 --- a/chrome/browser/extensions/PRESUBMIT.py +++ b/chrome/browser/extensions/PRESUBMIT.py @@ -297,7 +297,8 @@ class HistogramValueChecker(object): return self.results def CheckChangeOnUpload(input_api, output_api): - results = [] - results += HistogramValueChecker(input_api, output_api).Run() - return results + results = [] + results += HistogramValueChecker(input_api, output_api).Run() + results += input_api.canned_checks.CheckPatchFormatted(input_api, output_api) + return results diff --git a/chrome/browser/ui/apps/PRESUBMIT.py b/chrome/browser/ui/apps/PRESUBMIT.py new file mode 100644 index 0000000..627f282 --- /dev/null +++ b/chrome/browser/ui/apps/PRESUBMIT.py @@ -0,0 +1,14 @@ +# Copyright 2014 The Chromium Authors. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. + +"""Presubmit script for extensions and apps. + +See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts +for more details about the presubmit API built into depot_tools. +""" + +def CheckChangeOnUpload(input_api, output_api): + results = [] + results += input_api.canned_checks.CheckPatchFormatted(input_api, output_api) + return results diff --git a/chrome/common/extensions/PRESUBMIT.py b/chrome/common/extensions/PRESUBMIT.py index 2e138c9..56ac3b4 100644 --- a/chrome/common/extensions/PRESUBMIT.py +++ b/chrome/common/extensions/PRESUBMIT.py @@ -153,7 +153,10 @@ def _CheckChange(input_api, output_api): return results def CheckChangeOnUpload(input_api, output_api): - return _CheckChange(input_api, output_api) + results = [] + results += input_api.canned_checks.CheckPatchFormatted(input_api, output_api) + results += _CheckChange(input_api, output_api) + return results def CheckChangeOnCommit(input_api, output_api): return _CheckChange(input_api, output_api) diff --git a/chrome/renderer/extensions/PRESUBMIT.py b/chrome/renderer/extensions/PRESUBMIT.py new file mode 100644 index 0000000..627f282 --- /dev/null +++ b/chrome/renderer/extensions/PRESUBMIT.py @@ -0,0 +1,14 @@ +# Copyright 2014 The Chromium Authors. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. + +"""Presubmit script for extensions and apps. + +See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts +for more details about the presubmit API built into depot_tools. +""" + +def CheckChangeOnUpload(input_api, output_api): + results = [] + results += input_api.canned_checks.CheckPatchFormatted(input_api, output_api) + return results |