Current implementation of --diff
is kind of broken by design
#1389
Labels
Milestone
--diff
is kind of broken by design
#1389
--diff
currently makes assumptions that code changes will introduce lint errors at the position of the code change which may have been true forpycodestyle
which only concerns itself with whitespace / style issues -- but it is not true for pyflakes or generally true for flake8 pluginshere is a small concrete example:
flake8 t.py
reports F401 on line 1, butflake8 --diff
silently passes (even though the diff caused that new issue)as such, I think the option's behaviour needs to be changed in an incompatible way, or removed entirely
if kept, I think the only reasonable behaviour would be to limit changes to the file which a diff touched -- rather than the lines which were touched
The text was updated successfully, but these errors were encountered: