rspec/rules/S6002/python/rule.adoc
2022-02-04 16:28:24 +00:00

31 lines
451 B
Plaintext

include::../description.adoc[]
== Noncompliant Code Example
[source,python]
----
r"(?=a)b" # Noncompliant, the same character can't be equal to 'a' and 'b' at the same time
----
== Compliant Solution
[source,python]
----
r"(?<=a)b"
r"a(?=b)"
----
ifdef::env-github,rspecator-view[]
'''
== Implementation Specification
(visible only on this page)
include::../message.adoc[]
include::../highlighting.adoc[]
endif::env-github,rspecator-view[]