Merge "Log that the check does not understand the extension when verbose"

This commit is contained in:
Jenkins 2014-09-05 05:12:00 +00:00 committed by Gerrit Code Review
commit a2f8025e96
1 changed files with 4 additions and 3 deletions

View File

@ -243,9 +243,10 @@ def main():
pass pass
else: else:
if not extension_matcher.match(f.extension): if not extension_matcher.match(f.extension):
print(" Skipping check '%s' since it does not understand" if args.get('verbose'):
" parsing a file with extension '%s'" print(" Skipping check '%s' since it does not"
% (check_name, f.extension)) " understand parsing a file with extension '%s'"
% (check_name, f.extension))
continue continue
try: try:
reports = set(c.REPORTS) reports = set(c.REPORTS)