← back to index

S907 — "goto" statement should not be used

Language: C#  |  Type: CODE_SMELL  |  Severity: Major

Tags: brain-overload

Why is this an issue?

goto is an unstructured control flow statement. It makes code less readable and maintainable. Structured control flow statements such as if, for, while, continue or break should be used instead.