mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-22 20:55:43 +01:00
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:
parent
8c3ad4bfcb
commit
926f696a73
@ -40,7 +40,12 @@ max-attributes=15
|
|||||||
max-module-lines=2000
|
max-module-lines=2000
|
||||||
|
|
||||||
[MESSAGES CONTROL]
|
[MESSAGES CONTROL]
|
||||||
disable=
|
# * no-else-return: Allow the perfectly reasonable idiom
|
||||||
|
# if condition1:
|
||||||
|
# return value1
|
||||||
|
# else:
|
||||||
|
# return value2
|
||||||
|
disable=no-else-return
|
||||||
|
|
||||||
[REPORTS]
|
[REPORTS]
|
||||||
# Don't diplay statistics. Just the facts.
|
# Don't diplay statistics. Just the facts.
|
||||||
|
Loading…
Reference in New Issue
Block a user