11 lines
252 B
Plaintext
11 lines
252 B
Plaintext
![]() |
[source,python,diff-id=1,diff-type=noncompliant]
|
||
|
----
|
||
|
if 0 <= a < 10:
|
||
|
do_first()
|
||
|
do_second()
|
||
|
elif 10 <= a < 20:
|
||
|
do_the_other_thing()
|
||
|
elif 20 <= a < 50:
|
||
|
do_first() # Noncompliant; duplicates first condition
|
||
|
do_second()
|
||
|
----
|