| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # Copyright (c) 2012 Google Inc. All rights reserved. | 2 # Copyright (c) 2012 Google Inc. All rights reserved. |
| 3 # | 3 # |
| 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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 'toolbox.json', | 111 'toolbox.json', |
| 112 'unit_test_runner.json', | 112 'unit_test_runner.json', |
| 113 'formatter_worker.json', | 113 'formatter_worker.json', |
| 114 'heap_snapshot_worker.json', | 114 'heap_snapshot_worker.json', |
| 115 'utility_shared_worker.json', | 115 'utility_shared_worker.json', |
| 116 ] | 116 ] |
| 117 | 117 |
| 118 skipped_namespaces = { | 118 skipped_namespaces = { |
| 119 'Console', # Closure uses Console as a namespace item so we cannot override
it right now. | 119 'Console', # Closure uses Console as a namespace item so we cannot override
it right now. |
| 120 'Gonzales', # third party module defined in front_end/externs.js | 120 'Gonzales', # third party module defined in front_end/externs.js |
| 121 'Acorn', # third party module defined in front_end/externs.js |
| 121 'Terminal', # third party module defined in front_end/externs.js | 122 'Terminal', # third party module defined in front_end/externs.js |
| 122 } | 123 } |
| 123 | 124 |
| 124 | 125 |
| 125 def has_errors(output): | 126 def has_errors(output): |
| 126 return re.search(error_warning_regex, output) != None | 127 return re.search(error_warning_regex, output) != None |
| 127 | 128 |
| 128 | 129 |
| 129 class JSDocChecker: | 130 class JSDocChecker: |
| 130 | 131 |
| (...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 371 shutil.rmtree(temp_devtools_path, True) | 372 shutil.rmtree(temp_devtools_path, True) |
| 372 | 373 |
| 373 if errors_found: | 374 if errors_found: |
| 374 print 'ERRORS DETECTED' | 375 print 'ERRORS DETECTED' |
| 375 sys.exit(1) | 376 sys.exit(1) |
| 376 print 'DONE - compiled without errors' | 377 print 'DONE - compiled without errors' |
| 377 | 378 |
| 378 | 379 |
| 379 if __name__ == "__main__": | 380 if __name__ == "__main__": |
| 380 main() | 381 main() |
| OLD | NEW |