ui/app_list: Add git cl format presubmit warning.
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
TEST=None
[email protected]
Review URL: https://codereview.chromium.org/169003002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@251724 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/ui/app_list/PRESUBMIT.py b/ui/app_list/PRESUBMIT.py
new file mode 100644
index 0000000..74784d9
--- /dev/null
+++ b/ui/app_list/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 app_list.
+
+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