Inspectopedia
 
2024.3

Assignment to 'for' loop parameter

Warning
Code Style
Last modified: 03 December 2024

Reports assignments to for loop parameters inside the for loop body.

While occasionally intended, this construct can be extremely confusing, and is often the result of a typo.

Example: