mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-11-04 14:30:11 +01:00
lint: move regex closer to usage
This commit is contained in:
parent
223db1588b
commit
b9b4880b49
@ -121,8 +121,6 @@ def check_regexes(app):
|
||||
if m.match(l):
|
||||
yield "%s at line '%s': %s" % (f, l, r)
|
||||
|
||||
desc_url = re.compile("[^[]\[([^ ]+)( |\]|$)")
|
||||
|
||||
|
||||
def get_lastbuild(builds):
|
||||
lowest_vercode = -1
|
||||
@ -255,6 +253,9 @@ def check_duplicates(app):
|
||||
seenlines.add(l)
|
||||
|
||||
|
||||
desc_url = re.compile("[^[]\[([^ ]+)( |\]|$)")
|
||||
|
||||
|
||||
def check_mediawiki_links(app):
|
||||
for l in app['Description']:
|
||||
for um in desc_url.finditer(l):
|
||||
|
Loading…
Reference in New Issue
Block a user