mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-05 06:50:29 +03:00
lint: remove check_bulletes_lists
This commit is contained in:
parent
baf4cd6b61
commit
2081a9f2d2
1 changed files with 0 additions and 22 deletions
|
|
@ -435,27 +435,6 @@ def check_mediawiki_links(app):
|
||||||
yield _("URL {url} in Description: {error}").format(url=url, error=r)
|
yield _("URL {url} in Description: {error}").format(url=url, error=r)
|
||||||
|
|
||||||
|
|
||||||
def check_bulleted_lists(app):
|
|
||||||
validchars = ['*', '#']
|
|
||||||
lchar = ''
|
|
||||||
lcount = 0
|
|
||||||
for line in app.Description.splitlines():
|
|
||||||
if len(line) < 1:
|
|
||||||
lcount = 0
|
|
||||||
continue
|
|
||||||
|
|
||||||
if line[0] == lchar and line[1] == ' ':
|
|
||||||
lcount += 1
|
|
||||||
if lcount > 2 and lchar not in validchars:
|
|
||||||
yield _(
|
|
||||||
"Description has a list (%s) but it isn't bulleted (*) nor numbered (#)"
|
|
||||||
) % lchar
|
|
||||||
break
|
|
||||||
else:
|
|
||||||
lchar = line[0]
|
|
||||||
lcount = 1
|
|
||||||
|
|
||||||
|
|
||||||
def check_builds(app):
|
def check_builds(app):
|
||||||
supported_flags = set(metadata.build_flags)
|
supported_flags = set(metadata.build_flags)
|
||||||
# needed for YAML and JSON
|
# needed for YAML and JSON
|
||||||
|
|
@ -862,7 +841,6 @@ def main():
|
||||||
check_categories,
|
check_categories,
|
||||||
check_duplicates,
|
check_duplicates,
|
||||||
check_mediawiki_links,
|
check_mediawiki_links,
|
||||||
check_bulleted_lists,
|
|
||||||
check_builds,
|
check_builds,
|
||||||
check_files_dir,
|
check_files_dir,
|
||||||
check_format,
|
check_format,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue