From: Daniel Martí Date: Thu, 31 Dec 2015 10:21:47 +0000 (+0100) Subject: lint: warn about spaces in summaries too X-Git-Tag: 0.6.0~38 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=fdroidserver.git;a=commitdiff_plain;h=622195bf16b61726745f454ac8dda6b7f3a82584 lint: warn about spaces in summaries too --- diff --git a/fdroidserver/lint.py b/fdroidserver/lint.py index cca735b0..8722c6fd 100644 --- 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$'),