Mercurial > hg
changeset 11672:dad185761392
check-code: add warning on lines over 80 characters
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Sun, 25 Jul 2010 17:10:32 -0500 |
parents | ca6ede0988d5 |
children | a2f11188e2d2 |
files | contrib/check-code.py |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/contrib/check-code.py Sun Jul 25 08:22:03 2010 -0700 +++ b/contrib/check-code.py Sun Jul 25 17:10:32 2010 -0500 @@ -82,6 +82,7 @@ (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"),