summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIan Stapleton Cordasco <graffatcolmingov@gmail.com>2017-07-28 06:10:12 -0500
committerIan Stapleton Cordasco <graffatcolmingov@gmail.com>2017-07-28 06:10:12 -0500
commita44a09f87a783ddfb15634ed0cf9aba76138f991 (patch)
treef6f211f4edbb7085cf768be374715a0afde53a5f /src
parent0239f15dcce323357f316a66225b0d4d2308de28 (diff)
downloadflake8-a44a09f87a783ddfb15634ed0cf9aba76138f991.tar.gz
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
Diffstat (limited to 'src')
-rw-r--r--src/flake8/style_guide.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/flake8/style_guide.py b/src/flake8/style_guide.py
index 91423de..00eb1a5 100644
--- a/src/flake8/style_guide.py
+++ b/src/flake8/style_guide.py
@@ -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):