Why this matters
Omitting spaces around operators (`+`, `-`, `*`, etc.) reduces code readability. Proper spacing makes expressions easier to read and understand.
Ensure that arithmetic and logical operators have spaces around them for better readability (e.g., `x + y` instead of `x+y`).
Omitting spaces around operators (`+`, `-`, `*`, etc.) reduces code readability. Proper spacing makes expressions easier to read and understand.
Side-by-side examples engineers can pattern-match during review.
sum=1+2sum = 1 + 2sum=1+2sum = 1 + 2From the same buckets as this rule.
Check if loops use equality operators (== or !=) in termination conditions. These can lead to infinite loops if the condition is never met exactly. Instead, use relational operators like < or > for safer loop termination.