##// END OF EJS Templates
check-code: add some ignore hints
Matt Mackall -
r10287:5da892be default
parent child Browse files
Show More
@@ -135,11 +135,15 b' for f in check:'
135 if not re.match(match, f):
135 if not re.match(match, f):
136 continue
136 continue
137 pre = post = open(f).read()
137 pre = post = open(f).read()
138 if "no-" + "check-code" in pre:
139 break
138 for p, r in filters:
140 for p, r in filters:
139 post = re.sub(p, r, post)
141 post = re.sub(p, r, post)
140 # print post # uncomment to show filtered version
142 # print post # uncomment to show filtered version
141 z = enumerate(zip(pre.splitlines(), post.splitlines(True)))
143 z = enumerate(zip(pre.splitlines(), post.splitlines(True)))
142 for n, l in z:
144 for n, l in z:
145 if "check-code" + "-ignore" in l[0]:
146 continue
143 lc = 0
147 lc = 0
144 for p, msg in pats:
148 for p, msg in pats:
145 if re.search(p, l[1]):
149 if re.search(p, l[1]):
General Comments 0
You need to be logged in to leave comments. Login now