mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-11-09 17:00:12 +01:00
New lint feature: Summary forms
This commit is contained in:
parent
8ea114114f
commit
d116cc73c4
@ -65,6 +65,11 @@ def main():
|
|||||||
warn("Summary of length %s is over the %i char limit" % (
|
warn("Summary of length %s is over the %i char limit" % (
|
||||||
summ_chars, config['char_limits']['Summary']))
|
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
|
desc_chars = 0
|
||||||
for line in app['Description']:
|
for line in app['Description']:
|
||||||
desc_chars += len(line)
|
desc_chars += len(line)
|
||||||
|
Loading…
Reference in New Issue
Block a user