Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2012 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 json | 9 import json |
| 10 import optparse | 10 import optparse |
| (...skipping 620 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 631 # Look for email by nednguyen@google.com in May 5th in | 631 # Look for email by nednguyen@google.com in May 5th in |
| 632 # https://lists.logilab.org/pipermail/python-projects/ | 632 # https://lists.logilab.org/pipermail/python-projects/ |
| 633 'UNKNOWN', | 633 'UNKNOWN', |
| 634 ], | 634 ], |
| 635 # Not shipped, GPL license but some header files contain no licensing info. | 635 # Not shipped, GPL license but some header files contain no licensing info. |
| 636 'third_party/pylint': [ | 636 'third_party/pylint': [ |
| 637 'GPL (v2 or later)', | 637 'GPL (v2 or later)', |
| 638 # https://github.com/PyCQA/pylint/issues/894 | 638 # https://github.com/PyCQA/pylint/issues/894 |
| 639 'UNKNOWN', | 639 'UNKNOWN', |
| 640 ], | 640 ], |
| 641 | |
| 642 'courgette/third_party/divsufsort': [ # http://crbug.com/608885 | |
|
Paweł Hajdan Jr.
2016/07/22 13:23:52
No, this needs to be *upstream* bug report about m
Lei Zhang
2016/07/26 17:38:11
631482
huangs
2016/07/26 20:24:19
Can remove this now that we put back license boile
| |
| 643 'UNKNOWN', | |
| 644 ], | |
| 641 } | 645 } |
| 642 | 646 |
| 643 EXCLUDED_PATHS = [ | 647 EXCLUDED_PATHS = [ |
| 644 # Don't check generated files | 648 # Don't check generated files |
| 645 'out/', | 649 'out/', |
| 646 | 650 |
| 647 # Don't check downloaded goma client binaries | 651 # Don't check downloaded goma client binaries |
| 648 'build/goma/client', | 652 'build/goma/client', |
| 649 | 653 |
| 650 # Don't check sysroot directories | 654 # Don't check sysroot directories |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 778 action='store_true', | 782 action='store_true', |
| 779 default=False, | 783 default=False, |
| 780 help='Ignore path-specific license whitelist.') | 784 help='Ignore path-specific license whitelist.') |
| 781 option_parser.add_option('--json', help='Path to JSON output file') | 785 option_parser.add_option('--json', help='Path to JSON output file') |
| 782 options, args = option_parser.parse_args() | 786 options, args = option_parser.parse_args() |
| 783 return check_licenses(options, args) | 787 return check_licenses(options, args) |
| 784 | 788 |
| 785 | 789 |
| 786 if '__main__' == __name__: | 790 if '__main__' == __name__: |
| 787 sys.exit(main()) | 791 sys.exit(main()) |
| OLD | NEW |