# HG changeset patch # User Matt Mackall # Date 2010-07-25 22:10:32 # Node ID dad1857613922727a7a97be9f001e3722ed34318 # Parent ca6ede0988d5f147c5abe510ead5097300560d8c check-code: add warning on lines over 80 characters diff --git a/contrib/check-code.py b/contrib/check-code.py --- a/contrib/check-code.py +++ b/contrib/check-code.py @@ -82,6 +82,7 @@ pypats = [ (r'\w[+/*\-<>]\w', "missing whitespace in expression"), (r'^\s+\w+=\w+[^,)]$', "missing whitespace in assignment"), (r'.{85}', "line too long"), + (r'.{81}', "warning: line over 80 characters"), (r'[^\n]\Z', "no trailing newline"), # (r'^\s+[^_ ][^_. ]+_[^_]+\s*=', "don't use underbars in identifiers"), # (r'\w*[a-z][A-Z]\w*\s*=', "don't use camelcase in identifiers"),