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:
parent
cb319a6033
commit
efacffb615
@ -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…
Reference in New Issue
Block a user