# HG changeset patch # User Matt Mackall # Date 2014-08-07 19:57:20 # Node ID 15d0390a27feba495ba56fe37dc9606ab824085e # Parent 445472225ccd07c27323cab59c4a1bf728f76142 check-commit: spot growing whitespace We discourage PEP-8-style double blank lines, spot them creeping in. diff --git a/contrib/check-commit b/contrib/check-commit --- a/contrib/check-commit +++ b/contrib/check-commit @@ -27,6 +27,7 @@ errors = [ (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"), ]