##// END OF EJS Templates
check-code: detect legacy exception syntax...
Gregory Szorc -
r25661:20de1ace default
parent child Browse files
Show More
@@ -281,6 +281,8 b' pypats = ['
281 (r'\.debug\(\_', "don't mark debug messages for translation"),
281 (r'\.debug\(\_', "don't mark debug messages for translation"),
282 (r'\.strip\(\)\.split\(\)', "no need to strip before splitting"),
282 (r'\.strip\(\)\.split\(\)', "no need to strip before splitting"),
283 (r'^\s*except\s*:', "naked except clause", r'#.*re-raises'),
283 (r'^\s*except\s*:', "naked except clause", r'#.*re-raises'),
284 (r'^\s*except\s([^\(,]+|\([^\)]+\))\s*,',
285 'legacy exception syntax; use "as" instead of ","'),
284 (r':\n( )*( ){1,3}[^ ]', "must indent 4 spaces"),
286 (r':\n( )*( ){1,3}[^ ]', "must indent 4 spaces"),
285 (r'ui\.(status|progress|write|note|warn)\([\'\"]x',
287 (r'ui\.(status|progress|write|note|warn)\([\'\"]x',
286 "missing _() in ui message (use () to hide false-positives)"),
288 "missing _() in ui message (use () to hide false-positives)"),
General Comments 0
You need to be logged in to leave comments. Login now