From 845d92295f2e4542763d09c74b522a653326006e Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Mon, 22 Dec 2014 10:00:34 -0500 Subject: have lintchanges check header format. --- scripts/maint/lintChanges.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'scripts/maint/lintChanges.py') diff --git a/scripts/maint/lintChanges.py b/scripts/maint/lintChanges.py index 2e57295860..fcadc5e505 100755 --- a/scripts/maint/lintChanges.py +++ b/scripts/maint/lintChanges.py @@ -28,6 +28,9 @@ def lintfile(fname): lines = contents.split("\n") isBug = ("bug" in lines[0] or "fix" in lines[0]) + if not re.match(r'^ +o (.*)', contents): + warn("header not in format expected") + contents = " ".join(contents.split()) if isBug and not re.search(r'(\d+)', contents): -- cgit v1.2.3-54-g00ecf