Closed e3krisztian closed 6 years ago
Thank you for reporting.
As you guess, current behavior is caused by flake8's base formatter. (ref: flake8!108). It can be confirmed by using default formatter (and target files with some violations).
Though this looks like flake8's intended behavior (ref: flake8#193, flake8#224), as you say this plugin should replace the whole file. I opened #8.
Just released a new version 0.0.5. It now replaces the file rather than appending.
I can confirm the new version working.
Thank you!
Thanks for this nice project!
What I report below is a minor issue, that surprised me (worked around now).
Running
flake8 --format=junit-xml --output-file=flake8.xml
twice results in an invalidflake8.xml
file (second run's output appended to previous runs output):It might be the behavior of
flake8 --output-file
and not this plugin, however withjunit-xml
it looked more natural to use the option--output-file
than shell-redirect output to file.