Why this matters
`goto` leads to unstructured, difficult-to-maintain code. Use structured control flow statements (`if`, `for`, `while`, etc.) instead.
Check if `goto` statements are avoided. Ensure that structured control flow statements (`if`, `for`, `while`) are used instead.
`goto` leads to unstructured, difficult-to-maintain code. Use structured control flow statements (`if`, `for`, `while`, etc.) instead.
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.