Closed agraul closed 3 years ago
It appears I live a sheltered life, working on projects where people use "trim_trailing_white_space_on_save": true,
.
haha, I had to change my editor to write the reproducer, my main one didn't let me preserve the trailing whitespace... Apparently this was not the case for all authors of (at the time) spacewalk.
First of all, thank you for this project. I gave it a quick test yesterday and really like the improvement over stock
pylint
. Having usedrupocop
in the past, this is a feature I am really missing frompylint
. We want to (re-)introducepylint
to our code base andpylint-ignore
will be of great help.The issue I have is that, after running
pylint-ignore --update-ignorefile
,pylint-ignore
still reports "Trailing whitespace" messages. I tracked it down to lines that are empty except for whitespace and also took a look at the code, but didn't yet find a way to fix it myself.This is a minimal reproducer: Content of
~/tmp/pylint-ignore-repro/repro.py
(note the whitespace in the empty line):Initial
pylint-ignore
execution:Updating
pylint-ignore.md
:Running
pylint-ignore
again:I put the resulting
pylint-ignore.md
in theDetails
drawer below because it's pretty large. I can also attach it in another format if needed. The "suprising" thing is that theEntryHeader
has no line number. When I manually added the line number (but nothing else!), the message got ignored as expected.Versions in my virtual environment:
If you have any pointers I could give fixing this another try. If you need anything else, I'm happy to hand over any information that helps you.