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

Side by Side Diff: presubmit_support.py

Issue 548172: Change the default source lists; (Closed)
Patch Set: Created 10 years, 11 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
« no previous file with comments | « no previous file | no next file » | 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) 2006-2009 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2006-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 """Enables directory-specific presubmit checks to run at upload and/or commit. 6 """Enables directory-specific presubmit checks to run at upload and/or commit.
7 """ 7 """
8 8
9 __version__ = '1.3.4' 9 __version__ = '1.3.4'
10 10
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 know stuff about the change they're looking at. 146 know stuff about the change they're looking at.
147 """ 147 """
148 148
149 # File extensions that are considered source files from a style guide 149 # File extensions that are considered source files from a style guide
150 # perspective. Don't modify this list from a presubmit script! 150 # perspective. Don't modify this list from a presubmit script!
151 DEFAULT_WHITE_LIST = ( 151 DEFAULT_WHITE_LIST = (
152 # C++ and friends 152 # C++ and friends
153 r".*\.c", r".*\.cc", r".*\.cpp", r".*\.h", r".*\.m", r".*\.mm", 153 r".*\.c", r".*\.cc", r".*\.cpp", r".*\.h", r".*\.m", r".*\.mm",
154 r".*\.inl", r".*\.asm", r".*\.hxx", r".*\.hpp", 154 r".*\.inl", r".*\.asm", r".*\.hxx", r".*\.hpp",
155 # Scripts 155 # Scripts
156 r".*\.js", r".*\.py", r".*\.json", r".*\.sh", r".*\.rb", 156 r".*\.js", r".*\.py", r".*\.sh", r".*\.rb", r".*\.pl", r".*\.pm",
157 # No extension at all 157 # No extension at all, note that ALL CAPS files are black listed
158 r"(^|.*[\\\/])[^.]+$", 158 r"(^|.*[\\\/])[^.]+$",
159 # Other 159 # Other
160 r".*\.java", r".*\.mk", r".*\.am", r".*\.txt", 160 r".*\.java", r".*\.mk", r".*\.am",
161 ) 161 )
162 162
163 # Path regexp that should be excluded from being considered containing source 163 # Path regexp that should be excluded from being considered containing source
164 # files. Don't modify this list from a presubmit script! 164 # files. Don't modify this list from a presubmit script!
165 DEFAULT_BLACK_LIST = ( 165 DEFAULT_BLACK_LIST = (
166 r".*\bexperimental[\\\/].*", 166 r".*\bexperimental[\\\/].*",
167 r".*\bthird_party[\\\/].*", 167 r".*\bthird_party[\\\/].*",
168 # Output directories (just in case) 168 # Output directories (just in case)
169 r".*\bDebug[\\\/].*", 169 r".*\bDebug[\\\/].*",
170 r".*\bRelease[\\\/].*", 170 r".*\bRelease[\\\/].*",
(...skipping 877 matching lines...) Expand 10 before | Expand all | Expand 10 after
1048 options.commit, 1048 options.commit,
1049 options.verbose, 1049 options.verbose,
1050 sys.stdout, 1050 sys.stdout,
1051 sys.stdin, 1051 sys.stdin,
1052 options.default_presubmit, 1052 options.default_presubmit,
1053 options.may_prompt) 1053 options.may_prompt)
1054 1054
1055 1055
1056 if __name__ == '__main__': 1056 if __name__ == '__main__':
1057 sys.exit(Main(sys.argv)) 1057 sys.exit(Main(sys.argv))
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698