Inspectopedia
 
2024.3

'for' loop with missing components

Warning
New
Last modified: 03 December 2024

Reports for loops that lack initialization, condition, or update clauses. Some coding styles prohibit such loops.

Example:

Use the Ignore collection iterations option to ignore loops which use an iterator. This is a standard way to iterate over a collection in which the for loop does not have an update clause.