| 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 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 300 | 300 |
| 301 def IgnoreDir(self, name): | 301 def IgnoreDir(self, name): |
| 302 return (super(SourceProcessor, self).IgnoreDir(name) | 302 return (super(SourceProcessor, self).IgnoreDir(name) |
| 303 or (name == 'third_party') | 303 or (name == 'third_party') |
| 304 or (name == 'gyp') | 304 or (name == 'gyp') |
| 305 or (name == 'out') | 305 or (name == 'out') |
| 306 or (name == 'obj') | 306 or (name == 'obj') |
| 307 or (name == 'DerivedSources')) | 307 or (name == 'DerivedSources')) |
| 308 | 308 |
| 309 IGNORE_COPYRIGHTS = ['cpplint.py', | 309 IGNORE_COPYRIGHTS = ['cpplint.py', |
| 310 'daemon.py', | |
| 311 'earley-boyer.js', | 310 'earley-boyer.js', |
| 312 'raytrace.js', | 311 'raytrace.js', |
| 313 'crypto.js', | 312 'crypto.js', |
| 314 'libraries.cc', | 313 'libraries.cc', |
| 315 'libraries-empty.cc', | 314 'libraries-empty.cc', |
| 316 'jsmin.py', | 315 'jsmin.py', |
| 317 'regexp-pcre.js'] | 316 'regexp-pcre.js'] |
| 318 IGNORE_TABS = IGNORE_COPYRIGHTS + ['unicode-test.js', 'html-comments.js'] | 317 IGNORE_TABS = IGNORE_COPYRIGHTS + ['unicode-test.js', 'html-comments.js'] |
| 319 | 318 |
| 320 def ProcessContents(self, name, contents): | 319 def ProcessContents(self, name, contents): |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 380 print "Running copyright header and trailing whitespaces check..." | 379 print "Running copyright header and trailing whitespaces check..." |
| 381 success = SourceProcessor().Run(workspace) and success | 380 success = SourceProcessor().Run(workspace) and success |
| 382 if success: | 381 if success: |
| 383 return 0 | 382 return 0 |
| 384 else: | 383 else: |
| 385 return 1 | 384 return 1 |
| 386 | 385 |
| 387 | 386 |
| 388 if __name__ == '__main__': | 387 if __name__ == '__main__': |
| 389 sys.exit(Main()) | 388 sys.exit(Main()) |
| OLD | NEW |