summaryrefslogtreecommitdiffstats
path: root/apps/PRESUBMIT.py
diff options
context:
space:
mode:
authorscheib@chromium.org <scheib@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-02-08 00:46:46 +0000
committerscheib@chromium.org <scheib@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-02-08 00:46:46 +0000
commite2fa6e86d9d062af7b80f7ded7cfb2513601046d (patch)
treea5bf295381cd34630678e0b2fb5cbb168bf8daad /apps/PRESUBMIT.py
parent0e955432e32298a6789408261e1c3d30b03083ad (diff)
downloadchromium_src-e2fa6e86d9d062af7b80f7ded7cfb2513601046d.zip
chromium_src-e2fa6e86d9d062af7b80f7ded7cfb2513601046d.tar.gz
chromium_src-e2fa6e86d9d062af7b80f7ded7cfb2513601046d.tar.bz2
Add git cl format presubmit warning for extension and apps.
Upon patch upload 'git cl format' is run on the diff and outputs a warning if the diff has style violations, saving manual review time for coding style. BUG=none NOTRY=true Review URL: https://codereview.chromium.org/153953011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@249868 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'apps/PRESUBMIT.py')
-rw-r--r--apps/PRESUBMIT.py14
1 files changed, 14 insertions, 0 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