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

Issue 12047113: Make webview_licenses.py script to use licensecheck.pl (Closed)

Created:
7 years, 11 months ago by mnaganov (inactive)
Modified:
7 years, 10 months ago
CC:
chromium-reviews, android-webview-reviews_chromium.org
Visibility:
Public.

Description

Make webview_licenses.py script to use licensecheck.pl webview_licenses.py now uses licensecheck.pl for finding 3rd-party code outside of third_party directories. This allows us to share the tool code with Chromium and make the checking process more intelligent in order to avoid false positives. licensecheck.pl updated: - to add back copyrights discovery; - to fix generated files criteria; - to optimize for execution speed. BUG=161461

Patch Set 1 #

Patch Set 2 : Small cleanups #

Total comments: 22

Patch Set 3 : Comments addressed #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+88 lines, -183 lines) Patch
M android_webview/tools/third_party_files_whitelist.txt View 1 2 11 chunks +16 lines, -124 lines 0 comments Download
M android_webview/tools/webview_licenses.py View 1 2 1 chunk +31 lines, -53 lines 0 comments Download
M third_party/devscripts/licensecheck.pl View 1 2 6 chunks +37 lines, -6 lines 1 comment Download
M tools/checklicenses/checklicenses.py View 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
mnaganov (inactive)
Let's try the updated copyright finder code on webview bots first. If it will be ...
7 years, 11 months ago (2013-01-25 13:07:52 UTC) #1
mnaganov (inactive)
7 years, 11 months ago (2013-01-25 13:07:58 UTC) #2
Paweł Hajdan Jr.
https://codereview.chromium.org/12047113/diff/5001/android_webview/tools/third_party_files_whitelist.txt File android_webview/tools/third_party_files_whitelist.txt (right): https://codereview.chromium.org/12047113/diff/5001/android_webview/tools/third_party_files_whitelist.txt#newcode154 android_webview/tools/third_party_files_whitelist.txt:154: # !!! a real issue !!! How about a ...
7 years, 11 months ago (2013-01-25 17:54:33 UTC) #3
mnaganov (inactive)
https://codereview.chromium.org/12047113/diff/5001/android_webview/tools/third_party_files_whitelist.txt File android_webview/tools/third_party_files_whitelist.txt (right): https://codereview.chromium.org/12047113/diff/5001/android_webview/tools/third_party_files_whitelist.txt#newcode154 android_webview/tools/third_party_files_whitelist.txt:154: # !!! a real issue !!! On 2013/01/25 17:54:33, ...
7 years, 10 months ago (2013-01-28 14:51:54 UTC) #4
Paweł Hajdan Jr.
https://codereview.chromium.org/12047113/diff/5001/android_webview/tools/third_party_files_whitelist.txt File android_webview/tools/third_party_files_whitelist.txt (right): https://codereview.chromium.org/12047113/diff/5001/android_webview/tools/third_party_files_whitelist.txt#newcode154 android_webview/tools/third_party_files_whitelist.txt:154: # !!! a real issue !!! On 2013/01/28 14:51:54, ...
7 years, 10 months ago (2013-01-28 16:28:29 UTC) #5
mnaganov (inactive)
Thanks for the comments! Sorry for not updating the patch for the first time--I've got ...
7 years, 10 months ago (2013-01-28 17:12:38 UTC) #6
Paweł Hajdan Jr.
https://codereview.chromium.org/12047113/diff/5001/third_party/devscripts/licensecheck.pl File third_party/devscripts/licensecheck.pl (right): https://codereview.chromium.org/12047113/diff/5001/third_party/devscripts/licensecheck.pl#newcode296 third_party/devscripts/licensecheck.pl:296: unless ($. > $opt_lines) { On 2013/01/28 17:12:38, Mikhail ...
7 years, 10 months ago (2013-01-29 09:29:38 UTC) #7
mnaganov (inactive)
7 years, 10 months ago (2013-01-29 14:25:46 UTC) #8
Message was sent while issue was closed.
Pawel, thanks for the feedback!

After moving out Android-specific copyright scanning into a separate script,
this is the only change to licensecheck.pl left:

my $default_check_regex =
'\.(asm|c(c|pp|xx)?|h(h|pp|xx)?|f(77|90)?|p(l|m)|xs|sh|php|py(|x)|rb|idl|java|vala|el|sc(i|e)|cs|pas|inc|dtd|xsl|js|html|pac|mod|mm?|tex|mli?)$';

Which reveals a lot of .html and .js files in Chromium that doesn't contain a
proper license. I don't have bandwidth now to raise bugs and whitelist files,
and without that the changelist will be incomplete, so I'm abandoning this CL
and will add an Android-specific script separately.

Thanks again for your comments!

Powered by Google App Engine
This is Rietveld 408576698