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