check-code: check thyself
authorMatt Mackall <mpm@selenic.com>
Mon, 25 Jan 2010 01:23:34 -0600
changeset 10286 cc0340ef47f7
parent 10285 61f4ea277f23
child 10287 5da892be3497
check-code: check thyself
contrib/check-code.py
--- 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)',