mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-02 11:56:52 +00:00
Remediate one wafer thing decision logic bug
Previously we were hitting the catch-all return that decided the error was selected. Instead, let's add specific logic since we now know how we would hit that and we actually don't want it to be selected. Closes #354
This commit is contained in:
parent
0239f15dcc
commit
a44a09f87a
2 changed files with 6 additions and 4 deletions
|
|
@ -263,6 +263,9 @@ class DecisionEngine(object):
|
|||
if (select is None and
|
||||
(extra_select is None or not self.using_default_ignore)):
|
||||
return Decision.Ignored
|
||||
if ((select is None and not self.using_default_select) and
|
||||
(ignore is None and self.using_default_ignore)):
|
||||
return Decision.Ignored
|
||||
return Decision.Selected
|
||||
|
||||
def make_decision(self, code):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue