check-commit: spot growing whitespace
authorMatt Mackall <mpm@selenic.com>
Thu, 07 Aug 2014 14:57:20 -0500
changeset 22058 15d0390a27fe
parent 22057 445472225ccd
child 22059 d5cef58d8ec8
check-commit: spot growing whitespace We discourage PEP-8-style double blank lines, spot them creeping in.
contrib/check-commit
--- a/contrib/check-commit	Thu Jul 24 15:06:08 2014 -0400
+++ b/contrib/check-commit	Thu Aug 07 14:57:20 2014 -0500
@@ -27,6 +27,7 @@
     (r"^# .*\n[A-Z][a-z]\S+", "don't capitalize summary lines"),
     (r"^# .*\n.*\.\s+$", "don't add trailing period on summary line"),
     (r"^# .*\n.{78,}", "summary line too long"),
+    (r"^\+\n \n", "adds double empty line"),
     (r"\+\s+def [a-z]+_[a-z]", "adds a function with foo_bar naming"),
 ]