CodingStyle-WhitespaceNextToOperator¶
There must be exactly one whitespace on both sides of an operator
Required inputs: IR
a=b+c, write a = b + c.Possible Messages
Key |
Text |
Severity |
Disabled |
|---|---|---|---|
whitespace_violation |
No or incorrect whitespaces next to operator. |
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
at_least_one_whitespace_for_assignments¶
at_least_one_whitespace_for_assignments : bool = False
at_least_one_whitespace_for_binary_operators¶
at_least_one_whitespace_for_binary_operators : bool = False
check_assignment¶
check_assignment : bool = True
check_binary_operator¶
check_binary_operator : bool = True