Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(52)

Side by Side Diff: tools/checklicenses/checklicenses.py

Issue 1920403002: [content/test/gpu] Run pylint check of gpu tests in unittest instead of PRESUBMIT (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update checklicense.py Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « third_party/pylint/pylint/utils.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 'BSD-like', 54 'BSD-like',
55 55
56 # TODO(phajdan.jr): Make licensecheck not print BSD-like twice. 56 # TODO(phajdan.jr): Make licensecheck not print BSD-like twice.
57 'BSD MIT/X11 (BSD like)', 57 'BSD MIT/X11 (BSD like)',
58 'BSD-like MIT/X11 (BSD like)', 58 'BSD-like MIT/X11 (BSD like)',
59 59
60 'BSL (v1.0)', 60 'BSL (v1.0)',
61 'BSL (v1) LGPL (v2.1 or later)', 61 'BSL (v1) LGPL (v2.1 or later)',
62 'FreeType (BSD like) with patent clause', 62 'FreeType (BSD like) with patent clause',
63 'FreeType (BSD like)', 63 'FreeType (BSD like)',
64 'GPL (v2 or later)',
Paweł Hajdan Jr. 2016/05/05 14:03:29 No, not globally. Just for the test-only code. Gl
nednguyen 2016/05/05 14:22:11 Done.
64 'GPL (v2 or later) with Bison parser exception', 65 'GPL (v2 or later) with Bison parser exception',
65 'GPL (v2 or later) with libtool exception', 66 'GPL (v2 or later) with libtool exception',
66 'GPL (v2) LGPL (v2.1 or later)', 67 'GPL (v2) LGPL (v2.1 or later)',
67 'GPL (v3 or later) LGPL (v2.1 or later) with Bison parser exception', 68 'GPL (v3 or later) LGPL (v2.1 or later) with Bison parser exception',
68 'GPL (v3 or later) with Bison parser exception', 69 'GPL (v3 or later) with Bison parser exception',
69 'GPL with Bison parser exception', 70 'GPL with Bison parser exception',
70 'ISC', 71 'ISC',
71 'Independent JPEG Group License', 72 'Independent JPEG Group License',
72 'LGPL (unversioned/unknown version)', 73 'LGPL (unversioned/unknown version)',
73 'LGPL (v2 or later)', 74 'LGPL (v2 or later)',
(...skipping 567 matching lines...) Expand 10 before | Expand all | Expand 10 after
641 'UNKNOWN', 642 'UNKNOWN',
642 ], 643 ],
643 # Not shipped, MIT license but the header files contain no licensing info. 644 # Not shipped, MIT license but the header files contain no licensing info.
644 'third_party/catapult/telemetry/third_party/modulegraph': [ 645 'third_party/catapult/telemetry/third_party/modulegraph': [
645 'UNKNOWN', 646 'UNKNOWN',
646 ], 647 ],
647 'third_party/catapult/telemetry/third_party/pyserial': [ 648 'third_party/catapult/telemetry/third_party/pyserial': [
648 # https://sourceforge.net/p/pyserial/feature-requests/35/ 649 # https://sourceforge.net/p/pyserial/feature-requests/35/
649 'UNKNOWN', 650 'UNKNOWN',
650 ], 651 ],
652 # Not shipped, GPL license but the header files contain no licensing info.
653 'third_party/pylint': [
654 # https://github.com/PyCQA/pylint/issues/894
655 'UNKNOWN',
656 ],
657 # Not shipped, GPL license but the header files contain no licensing info.
658 'third_party/logilab/logilab/astroid': [
659 # https://github.com/PyCQA/astroid/issues/336
660 'UNKNOWN',
661 ],
662 # Not shipped, GPL license but the header files contain no licensing info.
663 'third_party/logilab/logilab/common': [
664 # Look for email by nednguyen@google.com in May 5th in
665 # https://lists.logilab.org/pipermail/python-projects/
666 'UNKNOWN',
667 ],
651 } 668 }
652 669
653 EXCLUDED_PATHS = [ 670 EXCLUDED_PATHS = [
654 # Don't check generated files 671 # Don't check generated files
655 'out/', 672 'out/',
656 673
657 # Don't check downloaded goma client binaries 674 # Don't check downloaded goma client binaries
658 'build/goma/client', 675 'build/goma/client',
659 676
660 # Don't check sysroot directories 677 # Don't check sysroot directories
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
787 action='store_true', 804 action='store_true',
788 default=False, 805 default=False,
789 help='Ignore path-specific license whitelist.') 806 help='Ignore path-specific license whitelist.')
790 option_parser.add_option('--json', help='Path to JSON output file') 807 option_parser.add_option('--json', help='Path to JSON output file')
791 options, args = option_parser.parse_args() 808 options, args = option_parser.parse_args()
792 return check_licenses(options, args) 809 return check_licenses(options, args)
793 810
794 811
795 if '__main__' == __name__: 812 if '__main__' == __name__:
796 sys.exit(main()) 813 sys.exit(main())
OLDNEW
« no previous file with comments | « third_party/pylint/pylint/utils.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698