Skip to content

Commit

Permalink
ignore PyLint rules individually in Pylintbear
Browse files Browse the repository at this point in the history
  • Loading branch information
AGZain committed Mar 4, 2017
1 parent a06d34e commit 25f1ba6
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions bears/python/PyLintBear.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,14 @@ class PyLintBear:

@staticmethod
def create_arguments(filename, file, config_file,
pylint_disable: typed_list(str)=None,
pylint_disable: typed_list(str)='',
pylint_enable: typed_list(str)=None,
pylint_cli_options: str='',
pylint_rcfile: str=''):
"""
:param pylint_disable: Disable the message, report, category or
checker with the given id(s).
checker with the given id(s). User will
input id.
:param pylint_enable: Enable the message, report, category or
checker with the given id(s).
:param pylint_cli_options: Any command line options you wish to be
Expand All @@ -49,8 +50,6 @@ def create_arguments(filename, file, config_file,
'--msg-template="L{line}C{column}: {msg_id} - {msg}"')
if pylint_disable:
args += ('--disable=' + ','.join(pylint_disable),)
if pylint_enable:
args += ('--enable=' + ','.join(pylint_enable),)
if pylint_cli_options:
args += tuple(shlex.split(pylint_cli_options))
if pylint_rcfile:
Expand Down

0 comments on commit 25f1ba6

Please sign in to comment.