From d116cc73c40a9d629137ab9ced60f714092d6dab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Mart=C3=AD?= Date: Tue, 7 Jan 2014 13:23:24 +0100 Subject: [PATCH] New lint feature: Summary forms --- fdroidserver/lint.py | 5 +++++ 1 file changed, 5 insertions(+) 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)