1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-11-04 14:30:11 +01:00

New lint feature: Summary forms

This commit is contained in:
Daniel Martí 2014-01-07 13:23:24 +01:00
parent cb319a6033
commit efacffb615

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)