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:
3ac5351
)
lint: warn about spaces in summaries too
author
Daniel Martí
<mvdan@mvdan.cc>
Thu, 31 Dec 2015 10:21:47 +0000
(11:21 +0100)
committer
Daniel Martí
<mvdan@mvdan.cc>
Thu, 31 Dec 2015 10:21:47 +0000
(11:21 +0100)
fdroidserver/lint.py
patch
|
blob
|
history
diff --git
a/fdroidserver/lint.py
b/fdroidserver/lint.py
index cca735b0b80c21089e34a4cdd87ce7d93c57f6ae..8722c6fd5af5532eb6e777ca7102ded4aae5c965 100644
(file)
--- a/
fdroidserver/lint.py
+++ b/
fdroidserver/lint.py
@@
-87,6
+87,10
@@
regex_checks = {
"No need to specify that the app is for Android"),
(re.compile(r'.*[a-z0-9][.!?]( |$)'),
"Punctuation should be avoided"),
+ (re.compile(r'^\s'),
+ "Unnecessary leading space"),
+ (re.compile(r'.*\s$'),
+ "Unnecessary trailing space"),
],
'Description': [
(re.compile(r'^No description available$'),