chiark / gitweb /
New lint feature: Summary forms
authorDaniel Martí <mvdan@mvdan.cc>
Tue, 7 Jan 2014 12:23:24 +0000 (13:23 +0100)
committerDaniel Martí <mvdan@mvdan.cc>
Thu, 9 Jan 2014 15:23:49 +0000 (16:23 +0100)
fdroidserver/lint.py

index 4ff4b43e12600d042d685c5d5ad44bb0160e326b..3def6ff7a75f6332009fb2f7ff7921e2240f308c 100644 (file)
@@ -65,6 +65,11 @@ def main():
             warn("Summary of length %s is over the %i char limit" % (
                 summ_chars, config['char_limits']['Summary']))
 
+        if app['Summary']:
+            lastchar = app['Summary'][-1]
+            if any(lastchar==c for c in ['.', ',', '!', '?']):
+                warn("Summary should not end with a %s" % lastchar)
+
         desc_chars = 0
         for line in app['Description']:
             desc_chars += len(line)