mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-11-09 00:40:11 +01:00
lint: remove now obsolete description checks
This commit is contained in:
parent
3413965eaa
commit
e6b14c8995
@ -255,18 +255,6 @@ def check_duplicates(app):
|
|||||||
seenlines.add(l)
|
seenlines.add(l)
|
||||||
|
|
||||||
|
|
||||||
def check_text_wrap(app):
|
|
||||||
maxcols = 140
|
|
||||||
for l in app['Description']:
|
|
||||||
if any(l.startswith(c) for c in ['*', '#']):
|
|
||||||
continue
|
|
||||||
if any(len(w) > maxcols for w in l.split(' ')):
|
|
||||||
continue
|
|
||||||
if len(l) > maxcols:
|
|
||||||
yield "Description should be wrapped to 80-120 chars"
|
|
||||||
break
|
|
||||||
|
|
||||||
|
|
||||||
def check_mediawiki_links(app):
|
def check_mediawiki_links(app):
|
||||||
for l in app['Description']:
|
for l in app['Description']:
|
||||||
for um in desc_url.finditer(l):
|
for um in desc_url.finditer(l):
|
||||||
@ -276,13 +264,6 @@ def check_mediawiki_links(app):
|
|||||||
yield "URL '%s' in Description: %s" % (url, r)
|
yield "URL '%s' in Description: %s" % (url, r)
|
||||||
|
|
||||||
|
|
||||||
def check_extra_spacing(app):
|
|
||||||
desc = app['Description']
|
|
||||||
if (not desc[0] or not desc[-1]
|
|
||||||
or any(not desc[l - 1] and not desc[l] for l in range(1, len(desc)))):
|
|
||||||
yield "Description has an extra empty line"
|
|
||||||
|
|
||||||
|
|
||||||
def check_bulleted_lists(app):
|
def check_bulleted_lists(app):
|
||||||
validchars = ['*', '#']
|
validchars = ['*', '#']
|
||||||
lchar = ''
|
lchar = ''
|
||||||
@ -352,9 +333,7 @@ def main():
|
|||||||
check_empty_fields,
|
check_empty_fields,
|
||||||
check_categories,
|
check_categories,
|
||||||
check_duplicates,
|
check_duplicates,
|
||||||
check_text_wrap,
|
|
||||||
check_mediawiki_links,
|
check_mediawiki_links,
|
||||||
check_extra_spacing,
|
|
||||||
check_bulleted_lists,
|
check_bulleted_lists,
|
||||||
check_builds,
|
check_builds,
|
||||||
]:
|
]:
|
||||||
|
Loading…
Reference in New Issue
Block a user