rspec/rules/S1142/python/rule.adoc
Alban Auzeill 2c306d110e Fix code block ambiguity with old header style
Ensure blank line before list and clean the one leading space
2020-06-30 17:16:12 +02:00

17 lines
282 B
Plaintext

include::../description.adoc[]
== Noncompliant Code Example
With the default threshold of 3:
----
def fun(): # Noncompliant as there are 4 return statements
if condition1:
return True
elif condition2:
return False
else:
return True
return False
----