A https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/statements/iteration-statements[loop statement] with at most one iteration is equivalent to an `if` statement; the following block is executed only once.
If the initial intention was to conditionally execute the block only once, an `if` statement should be used instead. If that was not the initial intention, the block of the loop should be fixed so the block is executed multiple times.
A loop statement with at most one iteration can happen when a statement unconditionally transfers control, such as a https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/statements/jump-statements[jump statement] or a https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/statements/exception-handling-statements#the-throw-statement[throw statement], is misplaced inside the loop block.
This rule raises when the following statements are misplaced: