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:
8ea1141
)
New lint feature: Summary forms
author
Daniel Martí
<mvdan@mvdan.cc>
Tue, 7 Jan 2014 12:23:24 +0000
(13:23 +0100)
committer
Daniel Martí
<mvdan@mvdan.cc>
Tue, 7 Jan 2014 12:23:24 +0000
(13:23 +0100)
fdroidserver/lint.py
patch
|
blob
|
history
diff --git
a/fdroidserver/lint.py
b/fdroidserver/lint.py
index 4ff4b43e12600d042d685c5d5ad44bb0160e326b..3def6ff7a75f6332009fb2f7ff7921e2240f308c 100644
(file)
--- a/
fdroidserver/lint.py
+++ b/
fdroidserver/lint.py
@@
-65,6
+65,11
@@
def main():
warn("Summary of length %s is over the %i char limit" % (
summ_chars, config['char_limits']['Summary']))
+ if app['Summary']:
+ lastchar = app['Summary'][-1]
+ if any(lastchar==c for c in ['.', ',', '!', '?']):
+ warn("Summary should not end with a %s" % lastchar)
+
desc_chars = 0
for line in app['Description']:
desc_chars += len(line)