Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(400)

Unified Diff: blimp/PRESUBMIT.py

Issue 1295243003: Initial commit of the blimp/ folder and target (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Moar nitz Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « blimp/OWNERS ('k') | blimp/README » ('j') | blimp/client/BUILD.gn » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: blimp/PRESUBMIT.py
diff --git a/blimp/PRESUBMIT.py b/blimp/PRESUBMIT.py
new file mode 100644
index 0000000000000000000000000000000000000000..ae90d459bc91a181eb154ae1f6652b91c5eb80a5
--- /dev/null
+++ b/blimp/PRESUBMIT.py
@@ -0,0 +1,25 @@
+# Copyright 2015 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.
+
+"""Top-level presubmit script for blimp.
+
+See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts
+for more details about the presubmit API built into depot_tools.
+"""
+
+import re
+
+BLIMP_SOURCE_FILES=(r'^blimp[\\/].*\.(cc|h)$',)
+
+def CheckChangeLintsClean(input_api, output_api):
+ source_filter = lambda x: input_api.FilterSourceFile(
+ x, white_list=BLIMP_SOURCE_FILES, black_list=None)
+
+ return input_api.canned_checks.CheckChangeLintsClean(
+ input_api, output_api, source_filter, lint_filters=[], verbose_level=1)
+
+def CheckChangeOnUpload(input_api, output_api):
+ results = []
+ results += CheckChangeLintsClean(input_api, output_api)
+ return results
« no previous file with comments | « blimp/OWNERS ('k') | blimp/README » ('j') | blimp/client/BUILD.gn » ('J')

Powered by Google App Engine
This is Rietveld 408576698