rspec/rules/S2709/rule.adoc
Arseniy Zaostrovnykh 7ca29f686f Force linebreaks
2021-02-02 15:02:10 +01:00

20 lines
398 B
Plaintext

Python interprets ``++False++`` as a "false" boolean value, and ``++True++`` as a "true" boolean value. Assigning them other values could lead to unexpected behaviors.
This rule raises an issue when "True" and "False", with any case, are used as identifiers.
== Noncompliant Code Example
----
True = "red" # Noncompliant
----
== Compliant Solution
----
color = "red" # Noncompliant
----