From f8f97e74ada5449c3089a8c81ce54a2fa32debb5 Mon Sep 17 00:00:00 2001 From: Brendan Jackman Date: Wed, 6 Dec 2017 14:49:41 +0000 Subject: [PATCH] extras/pylintrc: Disable no-else-return warning This warns for stuff like this, where the else is unnecessary: if thing: return 1 else: return 2 Which is harmless. Some people even prefer it that way. --- extras/pylintrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extras/pylintrc b/extras/pylintrc index 04b2a70f..cca7864f 100644 --- a/extras/pylintrc +++ b/extras/pylintrc @@ -43,7 +43,7 @@ ignore=external # https://bitbucket.org/logilab/pylint/issue/232/wrong-hanging-indentation-false-positive # TODO: disabling no-value-for-parameter and logging-format-interpolation, as they appear to be broken # in version 1.4.1 and return a lot of false postives; should be re-enabled once fixed. -disable=C0301,C0103,C0111,W0142,R0903,R0904,R0922,W0511,W0141,I0011,R0921,W1401,C0330,no-value-for-parameter,logging-format-interpolation +disable=C0301,C0103,C0111,W0142,R0903,R0904,R0922,W0511,W0141,I0011,R0921,W1401,C0330,no-value-for-parameter,logging-format-interpolation,no-else-return [FORMAT] max-module-lines=4000