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

Side by Side Diff: tools/presubmit.py

Issue 10538056: Merged r11546 into 3.9 branch. (Closed) Base URL: https://v8.googlecode.com/svn/branches/3.9
Patch Set: Created 8 years, 6 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 | « tools/merge-to-branch.sh ('k') | tools/test-wrapper-gypbuild.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 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # 2 #
3 # Copyright 2012 the V8 project authors. All rights reserved. 3 # Copyright 2012 the V8 project authors. All rights reserved.
4 # Redistribution and use in source and binary forms, with or without 4 # Redistribution and use in source and binary forms, with or without
5 # modification, are permitted provided that the following conditions are 5 # modification, are permitted provided that the following conditions are
6 # met: 6 # met:
7 # 7 #
8 # * Redistributions of source code must retain the above copyright 8 # * Redistributions of source code must retain the above copyright
9 # notice, this list of conditions and the following disclaimer. 9 # notice, this list of conditions and the following disclaimer.
10 # * Redistributions in binary form must reproduce the above 10 # * Redistributions in binary form must reproduce the above
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after
293 return False 293 return False
294 294
295 def GetPathsToSearch(self): 295 def GetPathsToSearch(self):
296 return ['.'] 296 return ['.']
297 297
298 def IgnoreDir(self, name): 298 def IgnoreDir(self, name):
299 return (super(SourceProcessor, self).IgnoreDir(name) 299 return (super(SourceProcessor, self).IgnoreDir(name)
300 or (name == 'third_party') 300 or (name == 'third_party')
301 or (name == 'gyp') 301 or (name == 'gyp')
302 or (name == 'out') 302 or (name == 'out')
303 or (name == 'obj')) 303 or (name == 'obj')
304 or (name == 'DerivedSources'))
304 305
305 IGNORE_COPYRIGHTS = ['cpplint.py', 306 IGNORE_COPYRIGHTS = ['cpplint.py',
306 'earley-boyer.js', 307 'earley-boyer.js',
307 'raytrace.js', 308 'raytrace.js',
308 'crypto.js', 309 'crypto.js',
309 'libraries.cc', 310 'libraries.cc',
310 'libraries-empty.cc', 311 'libraries-empty.cc',
311 'jsmin.py', 312 'jsmin.py',
312 'regexp-pcre.js'] 313 'regexp-pcre.js']
313 IGNORE_TABS = IGNORE_COPYRIGHTS + ['unicode-test.js', 'html-comments.js'] 314 IGNORE_TABS = IGNORE_COPYRIGHTS + ['unicode-test.js', 'html-comments.js']
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
375 print "Running copyright header and trailing whitespaces check..." 376 print "Running copyright header and trailing whitespaces check..."
376 success = SourceProcessor().Run(workspace) and success 377 success = SourceProcessor().Run(workspace) and success
377 if success: 378 if success:
378 return 0 379 return 0
379 else: 380 else:
380 return 1 381 return 1
381 382
382 383
383 if __name__ == '__main__': 384 if __name__ == '__main__':
384 sys.exit(Main()) 385 sys.exit(Main())
OLDNEW
« no previous file with comments | « tools/merge-to-branch.sh ('k') | tools/test-wrapper-gypbuild.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698