1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-11-09 00:40:11 +01:00

Warn about incorrect bulleted lists

This commit is contained in:
Daniel Martí 2014-01-20 11:15:15 +01:00
parent c9d8146f9e
commit e7b863ad20

View File

@ -90,6 +90,8 @@ def main():
# Description size limit
desc_chars = 0
for line in app['Description']:
if re.match(r'[ ]*\*[^ ]', line):
warn("Invalid bulleted list: '%s'" % line)
desc_chars += len(line)
if desc_chars > config['char_limits']['Description']:
warn("Description of length %s is over the %i char limit" % (
@ -117,7 +119,6 @@ def main():
if build['commit'].startswith(n):
warn("Branch '%s' used as commit" % n)
if not appid:
print