Pylint: allow if-return-else-return

Allow the perfectly reasonable idiom
    if condition1:
        return value1
    else:
        return value2

Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
Gilles Peskine 2020-03-24 16:07:40 +01:00
parent e22a4dacf7
commit 49f467903f

View file

@ -40,7 +40,12 @@ max-attributes=15
max-module-lines=2000
[MESSAGES CONTROL]
disable=
# * no-else-return: Allow the perfectly reasonable idiom
# if condition1:
# return value1
# else:
# return value2
disable=no-else-return
[REPORTS]
# Don't diplay statistics. Just the facts.