mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-10-08 02:11:07 +03:00
lint: move regex closer to usage
This commit is contained in:
parent
223db1588b
commit
b9b4880b49
1 changed files with 3 additions and 2 deletions
|
@ -121,8 +121,6 @@ def check_regexes(app):
|
||||||
if m.match(l):
|
if m.match(l):
|
||||||
yield "%s at line '%s': %s" % (f, l, r)
|
yield "%s at line '%s': %s" % (f, l, r)
|
||||||
|
|
||||||
desc_url = re.compile("[^[]\[([^ ]+)( |\]|$)")
|
|
||||||
|
|
||||||
|
|
||||||
def get_lastbuild(builds):
|
def get_lastbuild(builds):
|
||||||
lowest_vercode = -1
|
lowest_vercode = -1
|
||||||
|
@ -255,6 +253,9 @@ def check_duplicates(app):
|
||||||
seenlines.add(l)
|
seenlines.add(l)
|
||||||
|
|
||||||
|
|
||||||
|
desc_url = re.compile("[^[]\[([^ ]+)( |\]|$)")
|
||||||
|
|
||||||
|
|
||||||
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):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue