rspec/rules/S6326/python/rule.adoc

22 lines
416 B
Plaintext
Raw Normal View History

include::../description.adoc[]
== Noncompliant Code Example
[source,python]
----
r"Hello, world!"
----
== Compliant Solution
[source,python]
----
r"Hello, {3}world!"
----
== Exceptions
If the extended modifier `re.X` or `re.VERBOSE` is set, whitespaces are ignored. In this case no issue should be triggered, because the whitespaces may be intended to improve readability.
include::../implementation.adoc[]