chiark / gitweb /
Warn about incorrect bulleted lists
authorDaniel Martí <mvdan@mvdan.cc>
Mon, 20 Jan 2014 10:15:15 +0000 (11:15 +0100)
committerDaniel Martí <mvdan@mvdan.cc>
Mon, 20 Jan 2014 10:15:15 +0000 (11:15 +0100)
fdroidserver/lint.py

index de805527a89652fa139fdf339b6f1d4cc4c3e3f3..d790f41b121be88ef5658dd4bc907a6f3b2954b1 100644 (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