From: Daniel Martí Date: Mon, 20 Jan 2014 10:15:15 +0000 (+0100) Subject: Warn about incorrect bulleted lists X-Git-Tag: 0.2~388 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=e7b863ad2065a7e47eccf875933c47071f5f0f9c;p=fdroidserver.git Warn about incorrect bulleted lists --- diff --git a/fdroidserver/lint.py b/fdroidserver/lint.py index de805527..d790f41b 100644 --- a/fdroidserver/lint.py +++ b/fdroidserver/lint.py @@ -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