##// END OF EJS Templates
check-code: add warning on lines over 80 characters
Matt Mackall -
r11672:dad18576 default
parent child Browse files
Show More
@@ -82,6 +82,7 b' pypats = ['
82 (r'\w[+/*\-<>]\w', "missing whitespace in expression"),
82 (r'\w[+/*\-<>]\w', "missing whitespace in expression"),
83 (r'^\s+\w+=\w+[^,)]$', "missing whitespace in assignment"),
83 (r'^\s+\w+=\w+[^,)]$', "missing whitespace in assignment"),
84 (r'.{85}', "line too long"),
84 (r'.{85}', "line too long"),
85 (r'.{81}', "warning: line over 80 characters"),
85 (r'[^\n]\Z', "no trailing newline"),
86 (r'[^\n]\Z', "no trailing newline"),
86 # (r'^\s+[^_ ][^_. ]+_[^_]+\s*=', "don't use underbars in identifiers"),
87 # (r'^\s+[^_ ][^_. ]+_[^_]+\s*=', "don't use underbars in identifiers"),
87 # (r'\w*[a-z][A-Z]\w*\s*=', "don't use camelcase in identifiers"),
88 # (r'\w*[a-z][A-Z]\w*\s*=', "don't use camelcase in identifiers"),
General Comments 0
You need to be logged in to leave comments. Login now