Patchwork [1,of,4] check-commit: fix summary length regexp

login
register
mail settings
Submitter timeless@mozdev.org
Date Jan. 7, 2016, 10:13 p.m.
Message ID <64c42efbced150c5609d.1452204797@waste.org>
Download mbox | patch
Permalink /patch/12591/
State Superseded
Commit b2479d305c1049a7a9ac01a78074fe7c38bde085
Headers show

Comments

timeless@mozdev.org - Jan. 7, 2016, 10:13 p.m.
# HG changeset patch
# User timeless <timeless@mozdev.org>
# Date 1452139120 0
#      Thu Jan 07 03:58:40 2016 +0000
# Node ID 64c42efbced150c5609d5ea1e3b7a0094d22b2d1
# Parent  b8405d739149cdd6d8d9bd5e3dd2ad8487b1f09a
check-commit: fix summary length regexp

Patch

diff --git a/contrib/check-commit b/contrib/check-commit
--- a/contrib/check-commit
+++ b/contrib/check-commit
@@ -27,7 +27,7 @@ 
     (r"^# .*\n[A-Z][a-z]\S+", "don't capitalize summary lines"),
     (r"^# .*\n[^\n]*: *[A-Z][a-z]\S+", "don't capitalize summary lines"),
     (r"^# .*\n.*\.\s+$", "don't add trailing period on summary line"),
-    (r"^# .*\n[^#].{77,}", "summary line too long (limit is 78)"),
+    (r"^# .*\n[^#].{78,}", "summary line too long (limit is 78)"),
     (r"^\+\n \n", "adds double empty line"),
     (r"^ \n\+\n", "adds double empty line"),
     (r"^\+[ \t]+def [a-z]+_[a-z]", "adds a function with foo_bar naming"),