Show More
@@ -208,11 +208,31 b' cfilters = [' | |||||
208 | (r'(\()([^)]+\))', repcallspaces), |
|
208 | (r'(\()([^)]+\))', repcallspaces), | |
209 | ] |
|
209 | ] | |
210 |
|
210 | |||
|
211 | inutilpats = [ | |||
|
212 | [ | |||
|
213 | (r'\bui\.', "don't use ui in util"), | |||
|
214 | ], | |||
|
215 | # warnings | |||
|
216 | [] | |||
|
217 | ] | |||
|
218 | ||||
|
219 | inrevlogpats = [ | |||
|
220 | [ | |||
|
221 | (r'\brepo\.', "don't use repo in revlog"), | |||
|
222 | ], | |||
|
223 | # warnings | |||
|
224 | [] | |||
|
225 | ] | |||
|
226 | ||||
211 | checks = [ |
|
227 | checks = [ | |
212 | ('python', r'.*\.(py|cgi)$', pyfilters, pypats), |
|
228 | ('python', r'.*\.(py|cgi)$', pyfilters, pypats), | |
213 | ('test script', r'(.*/)?test-[^.~]*$', testfilters, testpats), |
|
229 | ('test script', r'(.*/)?test-[^.~]*$', testfilters, testpats), | |
214 | ('c', r'.*\.c$', cfilters, cpats), |
|
230 | ('c', r'.*\.c$', cfilters, cpats), | |
215 | ('unified test', r'.*\.t$', utestfilters, utestpats), |
|
231 | ('unified test', r'.*\.t$', utestfilters, utestpats), | |
|
232 | ('layering violation repo in revlog', r'mercurial/revlog\.py', pyfilters, | |||
|
233 | inrevlogpats), | |||
|
234 | ('layering violation ui in util', r'mercurial/util\.py', pyfilters, | |||
|
235 | inutilpats), | |||
216 | ] |
|
236 | ] | |
217 |
|
237 | |||
218 | class norepeatlogger(object): |
|
238 | class norepeatlogger(object): |
General Comments 0
You need to be logged in to leave comments.
Login now