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:
225c644
)
Warn about leading spaces in descriptions
author
Daniel Martí
<mvdan@mvdan.cc>
Tue, 6 May 2014 13:54:34 +0000
(15:54 +0200)
committer
Daniel Martí
<mvdan@mvdan.cc>
Tue, 6 May 2014 14:08:53 +0000
(16:08 +0200)
fdroidserver/lint.py
patch
|
blob
|
history
diff --git
a/fdroidserver/lint.py
b/fdroidserver/lint.py
index cc0ca498d4de05993c935d15fbe3b5fc653c9746..bd7a43ccd4ce5d594ea678f2a1a2f2579302856c 100644
(file)
--- a/
fdroidserver/lint.py
+++ b/
fdroidserver/lint.py
@@
-190,6
+190,8
@@
def main():
for line in app['Description']:
if re.match(r'[ ]*[*#][^ .]', line):
warn("Invalid bulleted list: '%s'" % line)
+ if re.match(r'^ ', line):
+ warn("Unnecessary leading space: '%s'" % line)
desc_chars += len(line)
# Description size limit