Inspectopedia
 
2024.3

Loop statement that doesn't loop

Warning
Reliability
Last modified: 03 December 2024

Reports for or while statements whose bodies are guaranteed to execute at most once. While such statements could be written intentionally, they are usually a symptom of error.

Example: