Inspectopedia
 
2024.3

Conditional break inside loop

Warning
New
Last modified: 03 December 2024

Reports conditional breaks at the beginning or at the end of a loop and suggests adding a loop condition instead to shorten the code.

Example:

After the quick fix is applied: