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.
This commit is contained in:
Daniel Martí 2016-01-31 21:29:31 +00:00
parent 8f36adfd7b
commit f586161361

View file

@ -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)$'),