chiark
/
gitweb
/
~ianmdlvl
/
fdroidserver.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e0870f6
)
lint: warn about unlinkified links
author
Daniel Martí
<mvdan@mvdan.cc>
Fri, 28 Aug 2015 22:50:34 +0000
(15:50 -0700)
committer
Daniel Martí
<mvdan@mvdan.cc>
Fri, 28 Aug 2015 22:50:34 +0000
(15:50 -0700)
fdroidserver/lint.py
patch
|
blob
|
history
diff --git
a/fdroidserver/lint.py
b/fdroidserver/lint.py
index b5ad2970dbebf12ec32e4be402432db2fcd2c9f8..95ae81cf957ffcaad2ea1fbde8778d58204d1d82 100644
(file)
--- a/
fdroidserver/lint.py
+++ b/
fdroidserver/lint.py
@@
-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]"),
],
}