mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-06 07:20:29 +03:00
lint: warn about duplicate lines
This commit is contained in:
parent
23794446f7
commit
19a281d7cb
1 changed files with 8 additions and 0 deletions
|
|
@ -260,6 +260,14 @@ def main():
|
||||||
or any(not desc[l - 1] and not desc[l] for l in range(1, len(desc)))):
|
or any(not desc[l - 1] and not desc[l] for l in range(1, len(desc)))):
|
||||||
warn("Description has an extra empty line")
|
warn("Description has an extra empty line")
|
||||||
|
|
||||||
|
seenlines = set()
|
||||||
|
for l in app['Description']:
|
||||||
|
if len(l) < 1:
|
||||||
|
continue
|
||||||
|
if l in seenlines:
|
||||||
|
warn("Description has a duplicate line")
|
||||||
|
seenlines.add(l)
|
||||||
|
|
||||||
for l in app['Description']:
|
for l in app['Description']:
|
||||||
for um in desc_url.finditer(l):
|
for um in desc_url.finditer(l):
|
||||||
url = um.group(1)
|
url = um.group(1)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue