Revert "Allowing whitespace-only lines."

This makes lint.py's behavior match pre-commit, which is useful because lint.py
errors show up inline on GitHub PRs.

This reverts commit ebb3dc48bf
develop
lethosor 2022-11-14 22:10:05 -05:00
parent 966623a919
commit d786989450
No known key found for this signature in database
GPG Key ID: 76A269552F4F58C1
1 changed files with 1 additions and 1 deletions

@ -97,7 +97,7 @@ class TrailingWhitespaceLinter(Linter):
msg = 'Contains trailing whitespace'
def check_line(self, line):
line = line.replace('\r', '').replace('\n', '')
return not line.strip() or line == line.rstrip('\t ')
return line == line.rstrip('\t ')
def fix_line(self, line):
return line.rstrip('\t ')