Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 286 return True | 286 return True |
| 287 return False | 287 return False |
| 288 | 288 |
| 289 def GetPathsToSearch(self): | 289 def GetPathsToSearch(self): |
| 290 return ['.'] | 290 return ['.'] |
| 291 | 291 |
| 292 def IgnoreDir(self, name): | 292 def IgnoreDir(self, name): |
| 293 return (super(SourceProcessor, self).IgnoreDir(name) or | 293 return (super(SourceProcessor, self).IgnoreDir(name) or |
| 294 name in ('third_party', 'gyp', 'out', 'obj', 'DerivedSources')) | 294 name in ('third_party', 'gyp', 'out', 'obj', 'DerivedSources')) |
| 295 | 295 |
| 296 IGNORE_COPYRIGHTS = ['box2d.js', | 296 IGNORE_COPYRIGHTS = ['benchmark.js', |
|
Michael Achenbach
2016/11/07 07:34:37
Will this have a problem with chromium's copyright
| |
| 297 'box2d.js', | |
| 297 'cpplint.py', | 298 'cpplint.py', |
| 298 'check_injected_script_source.py', | 299 'check_injected_script_source.py', |
| 299 'copy.js', | 300 'copy.js', |
| 300 'corrections.js', | 301 'corrections.js', |
| 301 'crypto.js', | 302 'crypto.js', |
| 302 'daemon.py', | 303 'daemon.py', |
| 303 'debugger-script.js', | 304 'debugger-script.js', |
| 304 'earley-boyer.js', | 305 'earley-boyer.js', |
| 305 'fannkuch.js', | 306 'fannkuch.js', |
| 306 'fasta.js', | 307 'fasta.js', |
| (...skipping 11 matching lines...) Expand all Loading... | |
| 318 'poppler.js', | 319 'poppler.js', |
| 319 'primes.js', | 320 'primes.js', |
| 320 'raytrace.js', | 321 'raytrace.js', |
| 321 'regexp-pcre.js', | 322 'regexp-pcre.js', |
| 322 'rjsmin.py', | 323 'rjsmin.py', |
| 323 'script-breakpoint.h', | 324 'script-breakpoint.h', |
| 324 'sqlite.js', | 325 'sqlite.js', |
| 325 'sqlite-change-heap.js', | 326 'sqlite-change-heap.js', |
| 326 'sqlite-pointer-masking.js', | 327 'sqlite-pointer-masking.js', |
| 327 'sqlite-safe-heap.js', | 328 'sqlite-safe-heap.js', |
| 329 'traceur-runtime.js', | |
| 328 'v8-debugger-script.h', | 330 'v8-debugger-script.h', |
| 329 'v8-function-call.cc', | 331 'v8-function-call.cc', |
| 330 'v8-function-call.h', | 332 'v8-function-call.h', |
| 331 'v8-inspector-impl.cc', | 333 'v8-inspector-impl.cc', |
| 332 'v8-inspector-impl.h', | 334 'v8-inspector-impl.h', |
| 333 'v8-runtime-agent-impl.cc', | 335 'v8-runtime-agent-impl.cc', |
| 334 'v8-runtime-agent-impl.h', | 336 'v8-runtime-agent-impl.h', |
| 335 'gnuplot-4.6.3-emscripten.js', | 337 'gnuplot-4.6.3-emscripten.js', |
| 336 'zlib.js'] | 338 'zlib.js'] |
| 337 IGNORE_TABS = IGNORE_COPYRIGHTS + ['unicode-test.js', 'html-comments.js'] | 339 IGNORE_TABS = IGNORE_COPYRIGHTS + ['unicode-test.js', 'html-comments.js'] |
| (...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 506 success &= CheckExternalReferenceRegistration(workspace) | 508 success &= CheckExternalReferenceRegistration(workspace) |
| 507 success &= CheckStatusFiles(workspace) | 509 success &= CheckStatusFiles(workspace) |
| 508 if success: | 510 if success: |
| 509 return 0 | 511 return 0 |
| 510 else: | 512 else: |
| 511 return 1 | 513 return 1 |
| 512 | 514 |
| 513 | 515 |
| 514 if __name__ == '__main__': | 516 if __name__ == '__main__': |
| 515 sys.exit(Main()) | 517 sys.exit(Main()) |
| OLD | NEW |