From: Nick Mathewson Date: Thu, 19 Feb 2015 14:54:09 +0000 (-0500) Subject: Check for # characters in lintchanges X-Git-Tag: tor-0.2.6.3-alpha~7 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=94a877381de43d4042f1e151747457278070ad1e;p=thirdparty%2Ftor.git Check for # characters in lintchanges --- diff --git a/scripts/maint/lintChanges.py b/scripts/maint/lintChanges.py index fcadc5e505..69963aea28 100755 --- a/scripts/maint/lintChanges.py +++ b/scripts/maint/lintChanges.py @@ -33,6 +33,9 @@ def lintfile(fname): contents = " ".join(contents.split()) + if re.search(r'\#\d{2,}', contents): + warn("don't use a # before ticket numbers") + if isBug and not re.search(r'(\d+)', contents): warn("bugfix does not mention a number") elif isBug and not re.search(r'Fixes ([a-z ]*)bug (\d+)', contents):