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

Side by Side Diff: tools/presubmit.py

Issue 720793002: Fix copyright headers. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 1 month 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 | « test/mjsunit/asm/embenchen/zlib.js ('k') | 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/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 309 matching lines...) Expand 10 before | Expand all | Expand 10 after
320 return True 320 return True
321 return False 321 return False
322 322
323 def GetPathsToSearch(self): 323 def GetPathsToSearch(self):
324 return ['.'] 324 return ['.']
325 325
326 def IgnoreDir(self, name): 326 def IgnoreDir(self, name):
327 return (super(SourceProcessor, self).IgnoreDir(name) or 327 return (super(SourceProcessor, self).IgnoreDir(name) or
328 name in ('third_party', 'gyp', 'out', 'obj', 'DerivedSources')) 328 name in ('third_party', 'gyp', 'out', 'obj', 'DerivedSources'))
329 329
330 IGNORE_COPYRIGHTS = ['cpplint.py', 330 IGNORE_COPYRIGHTS = ['box2d.js',
331 'cpplint.py',
332 'copy.js',
333 'corrections.js',
334 'crypto.js',
331 'daemon.py', 335 'daemon.py',
332 'earley-boyer.js', 336 'earley-boyer.js',
333 'raytrace.js', 337 'fannkuch.js',
334 'crypto.js', 338 'fasta.js',
339 'jsmin.py',
335 'libraries.cc', 340 'libraries.cc',
336 'libraries-empty.cc', 341 'libraries-empty.cc',
337 'jsmin.py', 342 'lua_binarytrees.js',
343 'memops.js',
344 'primes.js',
345 'raytrace.js',
338 'regexp-pcre.js', 346 'regexp-pcre.js',
339 'gnuplot-4.6.3-emscripten.js'] 347 'gnuplot-4.6.3-emscripten.js',
348 'zlib.js']
340 IGNORE_TABS = IGNORE_COPYRIGHTS + ['unicode-test.js', 'html-comments.js'] 349 IGNORE_TABS = IGNORE_COPYRIGHTS + ['unicode-test.js', 'html-comments.js']
341 350
342 def EndOfDeclaration(self, line): 351 def EndOfDeclaration(self, line):
343 return line == "}" or line == "};" 352 return line == "}" or line == "};"
344 353
345 def StartOfDeclaration(self, line): 354 def StartOfDeclaration(self, line):
346 return line.find("//") == 0 or \ 355 return line.find("//") == 0 or \
347 line.find("/*") == 0 or \ 356 line.find("/*") == 0 or \
348 line.find(") {") != -1 357 line.find(") {") != -1
349 358
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
451 success = CheckRuntimeVsNativesNameClashes(workspace) and success 460 success = CheckRuntimeVsNativesNameClashes(workspace) and success
452 success = CheckExternalReferenceRegistration(workspace) and success 461 success = CheckExternalReferenceRegistration(workspace) and success
453 if success: 462 if success:
454 return 0 463 return 0
455 else: 464 else:
456 return 1 465 return 1
457 466
458 467
459 if __name__ == '__main__': 468 if __name__ == '__main__':
460 sys.exit(Main()) 469 sys.exit(Main())
OLDNEW
« no previous file with comments | « test/mjsunit/asm/embenchen/zlib.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698