check-code: print debug output when an ignore pattern matches
authorSimon Heimberg <simohe@besonet.ch>
Tue, 07 Jan 2014 22:29:57 +0100
changeset 20243 cc09cfea3dd4
parent 20242 2dad90bdf29d
child 20244 47d0843647d1
check-code: print debug output when an ignore pattern matches
contrib/check-code.py
--- a/contrib/check-code.py	Tue Jan 07 22:29:51 2014 +0100
+++ b/contrib/check-code.py	Tue Jan 07 22:29:57 2014 +0100
@@ -495,6 +495,9 @@
                 l = prelines[n]
 
                 if ignore and re.search(ignore, l, re.MULTILINE):
+                    if debug:
+                        print "Skipping %s for %s:%s (ignore pattern)" % (
+                            name, f, n)
                     continue
                 bd = ""
                 if blame: