summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/flake8/processor.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/flake8/processor.py b/src/flake8/processor.py
index ea8d3e2..0fd650b 100644
--- a/src/flake8/processor.py
+++ b/src/flake8/processor.py
@@ -346,7 +346,10 @@ class FileProcessor(object):
:rtype:
bool
"""
- if any(defaults.NOQA_FILE.match(line) for line in self.lines):
+ if (
+ not self.options.disable_noqa
+ and any(defaults.NOQA_FILE.match(line) for line in self.lines)
+ ):
return True
elif any(defaults.NOQA_FILE.search(line) for line in self.lines):
LOG.warning(