If flake8 is configured to run with --count (count = True in a config file) it will print an extra line that contains the number of errors found.
If there are no errors, this causes vim-flake8 to open a quickfix window containing || 0, since the 0 line does not match any of the expected patterns. If there are any errors, this causes vim-flake8 to open a quickfix window containing an extra || <count> line at the end.
This PR just updates the expected patterns to ignore flake8 output lines that only contain a number
Fixes #68
If flake8 is configured to run with
--count
(count = True
in a config file) it will print an extra line that contains the number of errors found.If there are no errors, this causes vim-flake8 to open a quickfix window containing
|| 0
, since the0
line does not match any of the expected patterns. If there are any errors, this causes vim-flake8 to open a quickfix window containing an extra|| <count>
line at the end.This PR just updates the expected patterns to ignore flake8 output lines that only contain a number
To reproduce the issue:
example
flake8
with count output:vim-flake8 with no errors
vim-flake8 with errors