Log that the check does not understand the extension when verbose

Instead of always printing that the check was skipped when in non
verbose mode, log/print it only when verbose mode is enabled and not
otherwise.

Change-Id: I0190b9d82568fb18871591d64ec6bd4695751367
This commit is contained in:
Joshua Harlow 2014-09-04 16:18:29 -07:00
parent a90983acad
commit fdfeef577e
1 changed files with 4 additions and 3 deletions

View File

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