##// END OF EJS Templates
check-code: promote 80+ character line warning to an error
Brodie Rao -
r16702:1751d96d default
parent child Browse files
Show More
@@ -135,7 +135,7 pypats = [
135 135 (r'^\s+\w+=\w+[^,)\n]$', "missing whitespace in assignment"),
136 136 (r'(\s+)try:\n((?:\n|\1\s.*\n)+?)\1except.*?:\n'
137 137 r'((?:\n|\1\s.*\n)+?)\1finally:', 'no try/except/finally in Py2.4'),
138 (r'.{85}', "line too long"),
138 (r'.{81}', "line too long"),
139 139 (r' x+[xo][\'"]\n\s+[\'"]x', 'string join across lines with no space'),
140 140 (r'[^\n]\Z', "no trailing newline"),
141 141 (r'(\S[ \t]+|^[ \t]+)\n', "trailing whitespace"),
@@ -206,7 +206,6 pypats = [
206 206 ],
207 207 # warnings
208 208 [
209 (r'.{81}', "warning: line over 80 characters"),
210 209 (r'^\s*except:$', "warning: naked except clause"),
211 210 (r'ui\.(status|progress|write|note|warn)\([\'\"]x',
212 211 "warning: unwrapped ui message"),
@@ -226,7 +225,7 cpats = [
226 225 (r'^ ', "don't use spaces to indent"),
227 226 (r'\S\t', "don't use tabs except for indent"),
228 227 (r'(\S[ \t]+|^[ \t]+)\n', "trailing whitespace"),
229 (r'.{85}', "line too long"),
228 (r'.{81}', "line too long"),
230 229 (r'(while|if|do|for)\(', "use space after while/if/do/for"),
231 230 (r'return\(', "return is not a function"),
232 231 (r' ;', "no space before ;"),
General Comments 0
You need to be logged in to leave comments. Login now