All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.sonar.l10n.py.rules.python.S1717.html Maven / Gradle / Ivy

There is a newer version: 4.23.0.17664
Show newest version

This rule is deprecated, and will eventually be removed.

Why is this an issue?

Typically, backslashes are seen only as part of escape sequences. Therefore, the use of a backslash outside of a raw string or escape sequence looks suspiciously like a broken escape sequence.

Characters recognized as escape-able are: abfnrtvox\'"

Noncompliant code example

s = "Hello \world."
t = "Nice to \ meet you"
u = "Let's have \ lunch"

Compliant solution

s = "Hello world."
t = "Nice to \\ meet you"
u = r"Let's have \ lunch"  // raw string




© 2015 - 2024 Weber Informatics LLC | Privacy Policy