##// END OF EJS Templates
check-code: check for % inside _()
Matt Mackall -
r16234:a6941d70 default
parent child Browse files
Show More
@@ -122,6 +122,8 b' pypats = ['
122 (r'\.has_key\b', "dict.has_key is not available in Python 3+"),
122 (r'\.has_key\b', "dict.has_key is not available in Python 3+"),
123 (r'^\s*\t', "don't use tabs"),
123 (r'^\s*\t', "don't use tabs"),
124 (r'\S;\s*\n', "semicolon"),
124 (r'\S;\s*\n', "semicolon"),
125 (r'[^_]_\("[^"]+"\s*%', "don't use % inside _()"),
126 (r"[^_]_\('[^']+'\s*%", "don't use % inside _()"),
125 (r'\w,\w', "missing whitespace after ,"),
127 (r'\w,\w', "missing whitespace after ,"),
126 (r'\w[+/*\-<>]\w', "missing whitespace in expression"),
128 (r'\w[+/*\-<>]\w', "missing whitespace in expression"),
127 (r'^\s+\w+=\w+[^,)\n]$', "missing whitespace in assignment"),
129 (r'^\s+\w+=\w+[^,)\n]$', "missing whitespace in assignment"),
General Comments 0
You need to be logged in to leave comments. Login now