소스 검색

Check for # characters in lintchanges

Nick Mathewson 10 년 전
부모
커밋
94a877381d
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      scripts/maint/lintChanges.py

+ 3 - 0
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):