chiark / gitweb /
Warn about leading spaces in descriptions
authorDaniel Martí <mvdan@mvdan.cc>
Tue, 6 May 2014 13:54:34 +0000 (15:54 +0200)
committerDaniel Martí <mvdan@mvdan.cc>
Tue, 6 May 2014 14:08:53 +0000 (16:08 +0200)
fdroidserver/lint.py

index cc0ca498d4de05993c935d15fbe3b5fc653c9746..bd7a43ccd4ce5d594ea678f2a1a2f2579302856c 100644 (file)
@@ -190,6 +190,8 @@ def main():
         for line in app['Description']:
             if re.match(r'[ ]*[*#][^ .]', line):
                 warn("Invalid bulleted list: '%s'" % line)
+            if re.match(r'^ ', line):
+                warn("Unnecessary leading space: '%s'" % line)
             desc_chars += len(line)
 
         # Description size limit