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

Side by Side Diff: PRESUBMIT.py

Issue 56158: Remove the 'Hammer' name in favor of the Debug|Release names... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | base/base_paths_linux.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/python 1 #!/usr/bin/python
2 # Copyright (c) 2009 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2009 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 """Top-level presubmit script for Chromium. 6 """Top-level presubmit script for Chromium.
7 7
8 See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts for 8 See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts for
9 details on the presubmit API built into gcl. 9 details on the presubmit API built into gcl.
10 """ 10 """
11 11
12 # Files with these extensions will be considered source files. 12 # Files with these extensions will be considered source files.
13 SOURCE_FILE_EXTENSIONS = [ 13 SOURCE_FILE_EXTENSIONS = [
14 '.c', '.cc', '.cpp', '.h', '.m', '.mm', '.py', '.mk', '.am', '.json', 14 '.c', '.cc', '.cpp', '.h', '.m', '.mm', '.py', '.mk', '.am', '.json',
15 ] 15 ]
16 EXCLUDED_PATHS = [ 16 EXCLUDED_PATHS = [
17 r"breakpad[\\\/].*", 17 r"breakpad[\\\/].*",
18 r"chrome[\\\/]Debug[\\\/].*", 18 r"chrome[\\\/]Debug[\\\/].*",
19 r"chrome[\\\/]Hammer[\\\/].*",
20 r"chrome[\\\/]Release[\\\/].*", 19 r"chrome[\\\/]Release[\\\/].*",
20 r"sconsbuild[\\\/].*",
21 r"xcodebuild[\\\/].*", 21 r"xcodebuild[\\\/].*",
22 r"skia[\\\/].*", 22 r"skia[\\\/].*",
23 r".*third_party[\\\/].*", 23 r".*third_party[\\\/].*",
24 r"v8[\\\/].*", 24 r"v8[\\\/].*",
25 ] 25 ]
26 26
27 def ReadFile(path): 27 def ReadFile(path):
28 """Given a path, returns the full contents of the file. 28 """Given a path, returns the full contents of the file.
29 29
30 Reads files in binary format. 30 Reads files in binary format.
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 128
129 if cr_files: 129 if cr_files:
130 results.append(output_api.PresubmitError( 130 results.append(output_api.PresubmitError(
131 'Found CR (or CRLF) line ending in these files, please use only LF:', 131 'Found CR (or CRLF) line ending in these files, please use only LF:',
132 items=cr_files)) 132 items=cr_files))
133 if eof_files: 133 if eof_files:
134 results.append(output_api.PresubmitError( 134 results.append(output_api.PresubmitError(
135 'These files should end in one (and only one) newline character:', 135 'These files should end in one (and only one) newline character:',
136 items=eof_files)) 136 items=eof_files))
137 return results 137 return results
OLDNEW
« no previous file with comments | « no previous file | base/base_paths_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698