mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-24 04:13:28 +01:00
Check for # characters in lintchanges
This commit is contained in:
parent
61f9030409
commit
94a877381d
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user