From f58616136176919d5f81bb9f749f231d9efd1357 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Daniel=20Mart=C3=AD?= Date: Sun, 31 Jan 2016 21:29:31 +0000 Subject: [PATCH 1/1] 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. --- fdroidserver/lint.py | 2 ++ 1 file changed, 2 insertions(+) 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)$'), -- 2.30.2