SecureCoding-5.4¶
No assignment in conditional expressions
Required inputs: IR
Possible Messages
Key |
Text |
Severity |
Disabled |
|---|---|---|---|
assignment_inside_bool |
Assignment inside boolean expression. |
None |
False |
Options¶
This rule shares the following common options: exclude_in_macros, exclude_messages_in_system_headers, excludes, extend_exclude_to_macro_invocations, includes, justification_checker, languages, post_processing, provider, report_at, severity
The following places define options that affect this rule: Stylechecks, Analysis-GlobalOptions
allow_in_extra_parens¶
allow_in_extra_parens : bool = True
if ((x = y)) should be allowed (note the extra parens).
allow_in_relational_operator¶
allow_in_relational_operator : bool = True
(x = y) != 0.