changeset 10287:5da892be3497

check-code: add some ignore hints
author Matt Mackall <mpm@selenic.com>
date Thu, 28 Jan 2010 22:44:18 -0600
parents cc0340ef47f7
children e0121ad90b57
files contrib/check-code.py
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/contrib/check-code.py	Mon Jan 25 01:23:34 2010 -0600
+++ b/contrib/check-code.py	Thu Jan 28 22:44:18 2010 -0600
@@ -135,11 +135,15 @@
         if not re.match(match, f):
             continue
         pre = post = open(f).read()
+        if "no-" + "check-code" in pre:
+            break
         for p, r in filters:
             post = re.sub(p, r, post)
         # print post # uncomment to show filtered version
         z = enumerate(zip(pre.splitlines(), post.splitlines(True)))
         for n, l in z:
+            if "check-code" + "-ignore" in l[0]:
+                continue
             lc = 0
             for p, msg in pats:
                 if re.search(p, l[1]):