summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Cordasco <graffatcolmingov@gmail.com>2016-02-03 21:11:27 -0600
committerIan Cordasco <graffatcolmingov@gmail.com>2016-02-03 21:11:27 -0600
commit691bdc97eab5676f80d1874657e844c2931c7a7e (patch)
tree3b212e0a0066f18d2a455d81a04b0d171566d093
parenteafc91ae6ad5c05b3e036733d73a0edac9070192 (diff)
downloadflake8-691bdc97eab5676f80d1874657e844c2931c7a7e.tar.gz
Add option to disable # noqa
Sometimes it is nice to be able to ignore what someone has used #noqa on and see what the results would be. This can also be specified in a config file to prevent people from using # noqa in a code base.
-rw-r--r--flake8/main/cli.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/flake8/main/cli.py b/flake8/main/cli.py
index 7f58fb2..51071b5 100644
--- a/flake8/main/cli.py
+++ b/flake8/main/cli.py
@@ -86,6 +86,13 @@ def register_default_options(option_manager):
' For example, ``--select=E4,E51,W234``. (Default: %default)',
)
+ add_option(
+ '--disable-noqa', default=False, parse_from_config=True,
+ action='store_true',
+ help='Disable the effect of "# noqa". This will report errors on '
+ 'lines with "# noqa" at the end.'
+ )
+
# TODO(sigmavirus24): Decide what to do about --show-pep8
add_option(