1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-09-17 10:40:12 +02:00

New lint feature: Summary forms

This commit is contained in:
Daniel Martí 2014-01-07 13:23:24 +01:00
parent 8ea114114f
commit d116cc73c4

View 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)