##// END OF EJS Templates
check-code: find trailing whitespace
Martin Geisler -
r12770:614f0d87 default
parent child Browse files
Show More
@@ -110,6 +110,7 pypats = [
110 (r'.{85}', "line too long"),
110 (r'.{85}', "line too long"),
111 (r'.{81}', "warning: line over 80 characters"),
111 (r'.{81}', "warning: line over 80 characters"),
112 (r'[^\n]\Z', "no trailing newline"),
112 (r'[^\n]\Z', "no trailing newline"),
113 (r'(\S\s+|^\s+)\n', "trailing whitespace"),
113 # (r'^\s+[^_ ][^_. ]+_[^_]+\s*=', "don't use underbars in identifiers"),
114 # (r'^\s+[^_ ][^_. ]+_[^_]+\s*=', "don't use underbars in identifiers"),
114 # (r'\w*[a-z][A-Z]\w*\s*=', "don't use camelcase in identifiers"),
115 # (r'\w*[a-z][A-Z]\w*\s*=', "don't use camelcase in identifiers"),
115 (r'^\s*(if|while|def|class|except|try)\s[^[]*:\s*[^\]#\s]+',
116 (r'^\s*(if|while|def|class|except|try)\s[^[]*:\s*[^\]#\s]+',
General Comments 0
You need to be logged in to leave comments. Login now