From fdfeef577ed6486232ec692707f09812f65b5a72 Mon Sep 17 00:00:00 2001 From: Joshua Harlow Date: Thu, 4 Sep 2014 16:18:29 -0700 Subject: [PATCH] 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 --- doc8/main.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/doc8/main.py b/doc8/main.py index 1ab1011..8399069 100644 --- a/doc8/main.py +++ b/doc8/main.py @@ -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)