mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-05 06:50:29 +03:00
New lint feature: Summary forms
This commit is contained in:
parent
8ea114114f
commit
d116cc73c4
1 changed files with 5 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue