mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-09-17 18:50:11 +02:00
lint: warn about unlinkified links
This commit is contained in:
parent
e0870f6e76
commit
ce8f74c98e
@ -105,6 +105,8 @@ regex_warnings = {
|
|||||||
"Unnecessary trailing space"),
|
"Unnecessary trailing space"),
|
||||||
(re.compile(r'.*([^[]|^)\[[^:[\]]+( |\]|$)'),
|
(re.compile(r'.*([^[]|^)\[[^:[\]]+( |\]|$)'),
|
||||||
"Invalid link - use [http://foo.bar Link title] or [http://foo.bar]"),
|
"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]"),
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user