Skip to content
Snippets Groups Projects
Commit 94a87738 authored by Nick Mathewson's avatar Nick Mathewson :game_die:
Browse files

Check for # characters in lintchanges

parent 61f90304
No related branches found
No related tags found
No related merge requests found
......@@ -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):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment