From: Daniel Martí Date: Sun, 31 Jan 2016 21:29:31 +0000 (+0000) Subject: lint: also check for trailing spaces in names X-Git-Tag: 0.6.0~18 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=f58616136176919d5f81bb9f749f231d9efd1357;p=fdroidserver.git lint: also check for trailing spaces in names I was wrong - we don't check for trailing whitespaces on lines. That would have to happen at parse time, not in the linter, so it would slow things down and would become an error, not a warning. Not really worth it. --- diff --git a/fdroidserver/lint.py b/fdroidserver/lint.py index a5a8c655..ee4381c0 100644 --- a/fdroidserver/lint.py +++ b/fdroidserver/lint.py @@ -77,6 +77,8 @@ regex_checks = { 'Author Name': [ (re.compile(r'^\s'), "Unnecessary leading space"), + (re.compile(r'.*\s$'), + "Unnecessary trailing space"), ], 'License': [ (re.compile(r'^(|None|Unknown)$'),