[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tor/master] Check for # characters in lintchanges



commit 94a877381de43d4042f1e151747457278070ad1e
Author: Nick Mathewson <nickm@xxxxxxxxxxxxxx>
Date:   Thu Feb 19 09:54:09 2015 -0500

    Check for # characters in lintchanges
---
 scripts/maint/lintChanges.py |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/scripts/maint/lintChanges.py b/scripts/maint/lintChanges.py
index fcadc5e..69963ae 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):

_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits