changeset 22058:15d0390a27fe

check-commit: spot growing whitespace We discourage PEP-8-style double blank lines, spot them creeping in.
author Matt Mackall <mpm@selenic.com>
date Thu, 07 Aug 2014 14:57:20 -0500
parents 445472225ccd
children d5cef58d8ec8
files contrib/check-commit
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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"),
 ]