From: Daniel Martí Date: Fri, 28 Aug 2015 21:23:30 +0000 (-0700) Subject: lint: complain if link url isn't a url X-Git-Tag: 0.5.0~166 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=2c52f67cb1a01fe1a328f56c66adcd01e1c927ae;p=fdroidserver.git lint: complain if link url isn't a url Moving this check from metadata into lint is perhaps overkill, but at least it doesn't break fdroid update because of the maintainer notes. --- diff --git a/fdroidserver/lint.py b/fdroidserver/lint.py index f51e85bd..b5ad2970 100644 --- a/fdroidserver/lint.py +++ b/fdroidserver/lint.py @@ -103,6 +103,8 @@ regex_warnings = { "Unnecessary leading space"), (re.compile(r'.*\s$'), "Unnecessary trailing space"), + (re.compile(r'.*([^[]|^)\[[^:[\]]+( |\]|$)'), + "Invalid link - use [http://foo.bar Link title] or [http://foo.bar]"), ], }