Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 #!/usr/bin/python | 1 #!/usr/bin/python |
| 2 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
| 5 | 5 |
| 6 """Makes sure that all files contain proper licensing information.""" | 6 """Makes sure that all files contain proper licensing information.""" |
| 7 | 7 |
| 8 | 8 |
| 9 import optparse | 9 import optparse |
| 10 import os.path | 10 import os.path |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 71 | 71 |
| 72 # TODO(phajdan.jr): Make licensecheck not print the comma after 1.1. | 72 # TODO(phajdan.jr): Make licensecheck not print the comma after 1.1. |
| 73 'MPL (v1.1,) GPL (unversioned/unknown version) LGPL (v2 or later)', | 73 'MPL (v1.1,) GPL (unversioned/unknown version) LGPL (v2 or later)', |
| 74 'MPL (v1.1,) GPL (unversioned/unknown version) LGPL (v2.1 or later)', | 74 'MPL (v1.1,) GPL (unversioned/unknown version) LGPL (v2.1 or later)', |
| 75 | 75 |
| 76 'MIT/X11 (BSD like)', | 76 'MIT/X11 (BSD like)', |
| 77 'Ms-PL', | 77 'Ms-PL', |
| 78 'Public domain', | 78 'Public domain', |
| 79 'libpng', | 79 'libpng', |
| 80 'zlib/libpng', | 80 'zlib/libpng', |
| 81 'SGI Free Software License B', | |
| 81 ] | 82 ] |
| 82 | 83 |
| 83 | 84 |
| 84 PATH_SPECIFIC_WHITELISTED_LICENSES = { | 85 PATH_SPECIFIC_WHITELISTED_LICENSES = { |
| 85 'base/third_party/dmg_fp': [ # http://crbug.com/98086 | 86 'base/third_party/dmg_fp': [ # http://crbug.com/98086 |
| 86 'UNKNOWN', | 87 'UNKNOWN', |
| 87 ], | 88 ], |
| 88 'base/third_party/icu': [ # http://crbug.com/98087 | 89 'base/third_party/icu': [ # http://crbug.com/98087 |
| 89 'UNKNOWN', | 90 'UNKNOWN', |
| 90 ], | 91 ], |
| (...skipping 16 matching lines...) Expand all Loading... | |
| 107 'UNKNOWN', | 108 'UNKNOWN', |
| 108 ], | 109 ], |
| 109 'data/page_cycler': [ | 110 'data/page_cycler': [ |
| 110 'UNKNOWN', | 111 'UNKNOWN', |
| 111 'GPL (v2 or later)', | 112 'GPL (v2 or later)', |
| 112 ], | 113 ], |
| 113 'data/tab_switching': [ | 114 'data/tab_switching': [ |
| 114 'UNKNOWN', | 115 'UNKNOWN', |
| 115 ], | 116 ], |
| 116 'googleurl': [ # http://code.google.com/p/google-url/issues/detail?id=15 | 117 'googleurl': [ # http://code.google.com/p/google-url/issues/detail?id=15 |
| 117 'UNKNOWN', | 118 'UNKNOWN', |
|
Paweł Hajdan Jr.
2011/11/02 17:46:47
Excellent, thank you!
One little thing: could you
Sami
2011/11/02 18:24:25
Sure, here are the results.
Without the changes:
Paweł Hajdan Jr.
2011/11/02 18:28:31
Awesome, the speed doesn't seem affected much. Tha
| |
| 118 ], | 119 ], |
| 119 | 120 |
| 120 # http://crbug.com/98097 | |
| 121 'gpu/GLES2': [ | |
| 122 'UNKNOWN', | |
| 123 ], | |
| 124 'gpu/KHR': [ | |
| 125 'UNKNOWN', | |
| 126 ], | |
| 127 'gpu/gles2_conform_support/egl/native/EGL': [ | |
| 128 'UNKNOWN', | |
| 129 ], | |
| 130 'gpu/EGL': [ | |
| 131 'UNKNOWN', | |
| 132 ], | |
| 133 | |
| 134 'native_client': [ # http://crbug.com/98099 | 121 'native_client': [ # http://crbug.com/98099 |
| 135 'UNKNOWN', | 122 'UNKNOWN', |
| 136 ], | 123 ], |
| 137 'native_client/toolchain': [ | 124 'native_client/toolchain': [ |
| 138 'BSD GPL (v2 or later)', | 125 'BSD GPL (v2 or later)', |
| 139 'BSD (2 clause) GPL (v2 or later)', | 126 'BSD (2 clause) GPL (v2 or later)', |
| 140 'BSD (3 clause) GPL (v2 or later)', | 127 'BSD (3 clause) GPL (v2 or later)', |
| 141 'BSL (v1.0) GPL', | 128 'BSL (v1.0) GPL', |
| 142 'GPL', | 129 'GPL', |
| 143 'GPL (unversioned/unknown version)', | 130 'GPL (unversioned/unknown version)', |
| (...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 516 'to "../.." relative to the script file, which ' | 503 'to "../.." relative to the script file, which ' |
| 517 'will normally be the repository root.') | 504 'will normally be the repository root.') |
| 518 option_parser.add_option('-v', '--verbose', action='store_true', | 505 option_parser.add_option('-v', '--verbose', action='store_true', |
| 519 default=False, help='Print debug logging') | 506 default=False, help='Print debug logging') |
| 520 option_parser.add_option('--ignore-suppressions', | 507 option_parser.add_option('--ignore-suppressions', |
| 521 action='store_true', | 508 action='store_true', |
| 522 default=False, | 509 default=False, |
| 523 help='Ignore path-specific license whitelist.') | 510 help='Ignore path-specific license whitelist.') |
| 524 options, args = option_parser.parse_args() | 511 options, args = option_parser.parse_args() |
| 525 main(options, args) | 512 main(options, args) |
| OLD | NEW |