Warn on Tor versions with the 'tor-' prefix

Closes ticket 21096.
This commit is contained in:
cypherpunks 2016-12-19 08:00:56 +00:00 committed by Nick Mathewson
parent fa0792c3a8
commit 99cbadf143
2 changed files with 5 additions and 0 deletions

3
changes/ticket21096 Normal file
View File

@ -0,0 +1,3 @@
o Minor features (linting):
- Enhance the changes file linter to warn on Tor versions that are
prefixed with 'tor-'. Closes ticket 21096.

View File

@ -75,6 +75,8 @@ def lintfile(fname):
elif not re.search('[fF]ixes ([a-z ]*)bug (\d+); bugfix on ',
contents):
warn("bugfix incant is not semicoloned")
elif re.search('tor-([0-9]+)', contents):
warn("do not prefix versions with 'tor-'")
if __name__ == '__main__':