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

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

Issue 1392733002: Re-land "Check in a simple pure-python based Markdown previewer." (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: clarify comment re: licenses, add bug #, use --no-find-copies Created 5 years, 2 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/Python-Markdown/markdown/util.py ('k') | tools/md_browser/OWNERS » ('j') | 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 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 'BSL (v1.0) GPL', 144 'BSL (v1.0) GPL',
145 'BSL (v1.0) GPL (v3.1)', 145 'BSL (v1.0) GPL (v3.1)',
146 'GPL', 146 'GPL',
147 'GPL (unversioned/unknown version)', 147 'GPL (unversioned/unknown version)',
148 'GPL (v2)', 148 'GPL (v2)',
149 'GPL (v2 or later)', 149 'GPL (v2 or later)',
150 'GPL (v3.1)', 150 'GPL (v3.1)',
151 'GPL (v3 or later)', 151 'GPL (v3 or later)',
152 'MPL (v1.1) LGPL (unversioned/unknown version)', 152 'MPL (v1.1) LGPL (unversioned/unknown version)',
153 ], 153 ],
154
155 # The project is BSD-licensed but the individual files do not have
156 # consistent license headers. Also, this is just used in a utility
157 # and not shipped. https://github.com/waylan/Python-Markdown/issues/435
158 'third_party/Python-Markdown': [
159 'UNKNOWN',
160 ],
161
154 'third_party/WebKit': [ 162 'third_party/WebKit': [
155 'UNKNOWN', 163 'UNKNOWN',
156 ], 164 ],
157 165
158 # http://code.google.com/p/angleproject/issues/detail?id=217 166 # http://code.google.com/p/angleproject/issues/detail?id=217
159 'third_party/angle': [ 167 'third_party/angle': [
160 'UNKNOWN', 168 'UNKNOWN',
161 ], 169 ],
162 170
163 # http://crbug.com/222828 171 # http://crbug.com/222828
(...skipping 524 matching lines...) Expand 10 before | Expand all | Expand 10 after
688 action='store_true', 696 action='store_true',
689 default=False, 697 default=False,
690 help='Ignore path-specific license whitelist.') 698 help='Ignore path-specific license whitelist.')
691 option_parser.add_option('--json', help='Path to JSON output file') 699 option_parser.add_option('--json', help='Path to JSON output file')
692 options, args = option_parser.parse_args() 700 options, args = option_parser.parse_args()
693 return check_licenses(options, args) 701 return check_licenses(options, args)
694 702
695 703
696 if '__main__' == __name__: 704 if '__main__' == __name__:
697 sys.exit(main()) 705 sys.exit(main())
OLDNEW
« no previous file with comments | « third_party/Python-Markdown/markdown/util.py ('k') | tools/md_browser/OWNERS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698