diff --git a/.pylintrc b/.pylintrc index f5ef697a1..b8cc10090 100644 --- a/.pylintrc +++ b/.pylintrc @@ -31,7 +31,8 @@ disable=no-self-use, wrong-import-order, ungrouped-imports, redefined-variable-type, - suppressed-message + suppressed-message, + too-many-return-statements [BASIC] function-rgx=[a-z_][a-z0-9_]{2,50}$ diff --git a/qutebrowser/browser/network/networkmanager.py b/qutebrowser/browser/network/networkmanager.py index df1ae64e6..d4df03fd8 100644 --- a/qutebrowser/browser/network/networkmanager.py +++ b/qutebrowser/browser/network/networkmanager.py @@ -43,7 +43,6 @@ _proxy_auth_cache = {} def _is_secure_cipher(cipher): """Check if a given SSL cipher (hopefully) isn't broken yet.""" - # pylint: disable=too-many-return-statements tokens = [e.upper() for e in cipher.name().split('-')] if cipher.usedBits() < 128: # https://codereview.qt-project.org/#/c/75943/ diff --git a/qutebrowser/browser/webelem.py b/qutebrowser/browser/webelem.py index ecf8d43da..cc387bc9a 100644 --- a/qutebrowser/browser/webelem.py +++ b/qutebrowser/browser/webelem.py @@ -256,7 +256,6 @@ class WebElementWrapper(collections.abc.MutableMapping): Return: True if we should switch to insert mode, False otherwise. """ - # pylint: disable=too-many-return-statements self._check_vanished() roles = ('combobox', 'textbox') log.misc.debug("Checking if element is editable: {}".format( diff --git a/qutebrowser/utils/standarddir.py b/qutebrowser/utils/standarddir.py index 872ef758b..04c4c82a6 100644 --- a/qutebrowser/utils/standarddir.py +++ b/qutebrowser/utils/standarddir.py @@ -145,7 +145,6 @@ def _from_args(typ, args): override: boolean, if the user did override the path path: The overridden path, or None to turn off storage. """ - # pylint: disable=too-many-return-statements typ_to_argparse_arg = { QStandardPaths.ConfigLocation: 'confdir', QStandardPaths.DataLocation: 'datadir',