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