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

Unified Diff: tools/checklicenses/checklicenses.py

Issue 293843002: checklicenses: Do not report unused suppressions when checking a sub-directory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/checklicenses/checklicenses.py
===================================================================
--- tools/checklicenses/checklicenses.py (revision 271501)
+++ tools/checklicenses/checklicenses.py (working copy)
@@ -460,11 +460,12 @@
if success:
print "\nSUCCESS\n"
- unused_suppressions = set(
- PATH_SPECIFIC_WHITELISTED_LICENSES.keys()).difference(used_suppressions)
- if unused_suppressions:
- print "\nNOTE: unused suppressions detected:\n"
- print '\n'.join(unused_suppressions)
+ if not len(args):
+ unused_suppressions = set(
+ PATH_SPECIFIC_WHITELISTED_LICENSES.keys()).difference(used_suppressions)
+ if unused_suppressions:
+ print "\nNOTE: unused suppressions detected:\n"
+ print '\n'.join(unused_suppressions)
return 0
else:
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698