changeset 10286:cc0340ef47f7

check-code: check thyself
author Matt Mackall <mpm@selenic.com>
date Mon, 25 Jan 2010 01:23:34 -0600
parents 61f4ea277f23
children 5da892be3497
files contrib/check-code.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/contrib/check-code.py	Fri Jan 29 01:04:38 2010 +0100
+++ b/contrib/check-code.py	Mon Jan 25 01:23:34 2010 -0600
@@ -68,7 +68,8 @@
     (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"),
-    (r'^\s*(if|while|def|class|except|try)\s[^[]*:\s*[^\]#\s]+', "linebreak after :"),
+    (r'^\s*(if|while|def|class|except|try)\s[^[]*:\s*[^\]#\s]+',
+     "linebreak after :"),
     (r'class\s[^(]:', "old-style class, use class foo(object)"),
     (r'^\s+except\(', "except isn't a function"),
 #    (r'class\s[A-Z][^\(]*\((?!Exception)',