summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorByeonghoon Yoo <bh322yoo@gmail.com>2019-11-05 21:54:24 +0900
committerByeonghoon Yoo <bh322yoo@gmail.com>2019-11-05 21:54:24 +0900
commit9a45593aae18b2bd8ae9e02e0ce4ee7147b570dd (patch)
treebbf1cbe39c907c7485ccf0fc625aa4f8f30257bc /src
parent19868e5c21f37e3195b353a2d2f611b8a5d7931c (diff)
downloadflake8-9a45593aae18b2bd8ae9e02e0ce4ee7147b570dd.tar.gz
Add disable_noqa attribute to FileProcessor
Diffstat (limited to 'src')
-rw-r--r--src/flake8/processor.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/flake8/processor.py b/src/flake8/processor.py
index ea8d3e2..3ee6dfa 100644
--- a/src/flake8/processor.py
+++ b/src/flake8/processor.py
@@ -36,6 +36,7 @@ class FileProcessor(object):
- :attr:`blank_before`
- :attr:`blank_lines`
- :attr:`checker_state`
+ - :attr:`disable_noqa`
- :attr:`indent_char`
- :attr:`indent_level`
- :attr:`line_number`
@@ -77,6 +78,8 @@ class FileProcessor(object):
self._checker_states = {} # type: Dict[str, Dict[Any, Any]]
#: Current checker state
self.checker_state = {} # type: Dict[Any, Any]
+ #: Disable all noqa comments
+ self.disable_noqa = options.disable_noqa # type: bool
#: User provided option for hang closing
self.hang_closing = options.hang_closing
#: Character used for indentation