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