Suggestion for a new checker - Check Suspicious For Loop
Severity: Style Usually, the variable which is initialized in the for loop is the same variable we would like to use in the rest of the loop. When we write many lines of code or copying lines of code from one place to another, we may not pay attention to the variables inside the for loops. This checker is meant to help us avoiding this problem. By creating this checker, we wish to notify the user in case that the variable which is initialized in the for loop does not exist in the other parts of the loop.
Thanks for contributing. You should add some test cases to show for what code your new check warns or doesn't.
Still no reply after more than six months - closing.