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

Side by Side Diff: chrome/PRESUBMIT.py

Issue 8680018: Fix python scripts in src/chrome/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: copyright Created 9 years 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/app/policy/syntax_check_policy_template_json.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 """Makes sure that the chrome/ code is cpplint clean.""" 5 """Makes sure that the chrome/ code is cpplint clean."""
6 6
7 INCLUDE_CPP_FILES_ONLY = ( 7 INCLUDE_CPP_FILES_ONLY = (
8 r'.*\.cc$', r'.*\.h$' 8 r'.*\.cc$', r'.*\.h$'
9 ) 9 )
10 10
11 EXCLUDE = ( 11 EXCLUDE = (
(...skipping 29 matching lines...) Expand all
41 ) 41 )
42 42
43 def CheckChangeOnUpload(input_api, output_api): 43 def CheckChangeOnUpload(input_api, output_api):
44 results = [] 44 results = []
45 black_list = input_api.DEFAULT_BLACK_LIST + EXCLUDE 45 black_list = input_api.DEFAULT_BLACK_LIST + EXCLUDE
46 sources = lambda x: input_api.FilterSourceFile( 46 sources = lambda x: input_api.FilterSourceFile(
47 x, white_list=INCLUDE_CPP_FILES_ONLY, black_list=black_list) 47 x, white_list=INCLUDE_CPP_FILES_ONLY, black_list=black_list)
48 results.extend(input_api.canned_checks.CheckChangeLintsClean( 48 results.extend(input_api.canned_checks.CheckChangeLintsClean(
49 input_api, output_api, sources)) 49 input_api, output_api, sources))
50 return results 50 return results
OLDNEW
« no previous file with comments | « no previous file | chrome/app/policy/syntax_check_policy_template_json.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698