Why this matters
Long lines make code harder to read, especially on smaller screens or during code reviews. Keeping lines within 80 characters improves readability and maintainability.
Ensure that lines do not exceed 80 characters. Long lines reduce readability, especially on smaller screens or during code reviews.
Long lines make code harder to read, especially on smaller screens or during code reviews. Keeping lines within 80 characters improves readability and maintainability.
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.