From: Daniel Martí Date: Tue, 7 Jan 2014 12:23:24 +0000 (+0100) Subject: New lint feature: Summary forms X-Git-Tag: 0.1~48 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=d116cc73c40a9d629137ab9ced60f714092d6dab;p=fdroidserver.git New lint feature: Summary forms --- diff --git a/fdroidserver/lint.py b/fdroidserver/lint.py index 4ff4b43e..3def6ff7 100644 --- a/fdroidserver/lint.py +++ b/fdroidserver/lint.py @@ -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)