Show More
@@ -211,11 +211,11 b' pypats = [' | |||||
211 | (r'\.strip\(\)\.split\(\)', "no need to strip before splitting"), |
|
211 | (r'\.strip\(\)\.split\(\)', "no need to strip before splitting"), | |
212 | (r'^\s*except\s*:', "warning: naked except clause", r'#.*re-raises'), |
|
212 | (r'^\s*except\s*:', "warning: naked except clause", r'#.*re-raises'), | |
213 | (r':\n( )*( ){1,3}[^ ]', "must indent 4 spaces"), |
|
213 | (r':\n( )*( ){1,3}[^ ]', "must indent 4 spaces"), | |
|
214 | (r'ui\.(status|progress|write|note|warn)\([\'\"]x', | |||
|
215 | "missing _() in ui message (use () to hide false-positives)"), | |||
214 | ], |
|
216 | ], | |
215 | # warnings |
|
217 | # warnings | |
216 | [ |
|
218 | [ | |
217 | (r'ui\.(status|progress|write|note|warn)\([\'\"]x', |
|
|||
218 | "warning: unwrapped ui message"), |
|
|||
219 | ] |
|
219 | ] | |
220 | ] |
|
220 | ] | |
221 |
|
221 |
General Comments 0
You need to be logged in to leave comments.
Login now