CodingStyle-WhitespaceNextToOperator

There must be exactly one whitespace on both sides of an operator

Required inputs: IR

There must be exactly one whitespace on both sides of an operator: Instead of 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

at_least_one_whitespace_for_assignments

at_least_one_whitespace_for_assignments : bool = False

Flag which weakens the rules default to expect just one space next to assignment tokens. Multiple spaces will be allowed.
 

at_least_one_whitespace_for_binary_operators

at_least_one_whitespace_for_binary_operators : bool = False

Flag which weakens the rules default to expect just one space next to binary operator tokens. Multiple spaces will be allowed.
 

check_assignment

check_assignment : bool = True

Flag if assignment tokens should be checked for missing spaces.
 

check_binary_operator

check_binary_operator : bool = True

Flag if binary operator tokens should be checked for missing spaces.