1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-11-12 18:20:11 +01:00

lint: warn about unlinkified links

This commit is contained in:
Daniel Martí 2015-08-28 15:50:34 -07:00
parent e0870f6e76
commit ce8f74c98e

View File

@ -105,6 +105,8 @@ regex_warnings = {
"Unnecessary trailing space"),
(re.compile(r'.*([^[]|^)\[[^:[\]]+( |\]|$)'),
"Invalid link - use [http://foo.bar Link title] or [http://foo.bar]"),
(re.compile(r'.*[^[]https?://[^ ]+'),
"Unlinkified link - use [http://foo.bar Link title] or [http://foo.bar]"),
],
}