42 lines
696 B
Plaintext
Raw Permalink Normal View History

== Why is this an issue?
include::../description.adoc[]
2021-02-09 12:11:03 +01:00
{intro}
2020-06-30 12:49:37 +02:00
2022-02-04 17:28:24 +01:00
[source,python]
2020-06-30 12:49:37 +02:00
----
def swap(mylist, index1, index2):
tmp = mylist[index2]
mylist[index2] = mylist[index1]
mylist[index2] = tmp # Noncompliant
list2 = [0,1,2,3,4,5,6,7,8,9]
list2[3:5] = [42,42]
list2[3:5] = [42,42] # Noncompliant
mymap = {'a': {}}
mymap['a']['b'] = 42
mymap['a']['b'] = 42 # Noncompliant
----
{outro}
ifdef::env-github,rspecator-view[]
'''
== Implementation Specification
(visible only on this page)
include::../message.adoc[]
include::../highlighting.adoc[]
'''
== Comments And Links
(visible only on this page)
include::../comments-and-links.adoc[]
endif::env-github,rspecator-view[]