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