Why this matters
Declaring multiple variables in a single statement reduces readability and can introduce subtle bugs. Declare each variable separately for clarity.
Ensure that multiple variables are not declared in a single statement. This practice reduces readability and can introduce subtle bugs. Recommend declaring variables separately.
Declaring multiple variables in a single statement reduces readability and can introduce subtle bugs. Declare each variable separately for clarity.
Side-by-side examples engineers can pattern-match during review.
// (no example provided)// (no example provided)From 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.