mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-05 23:10:29 +03:00
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:
parent
8f36adfd7b
commit
f586161361
1 changed files with 2 additions and 0 deletions
|
|
@ -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)$'),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue