It can be extremely confusing when a for loop's counter is incremented outside of its increment clause. In such cases, the increment should be moved to the loop's increment clause if at all possible.

Noncompliant Code Example

for (i = 0; i < 10; j++) { // Noncompliant
  // ...
  i++;
}

Compliant Solution

for (i = 0; i < 10; i++, j++) {
  // ...
}

Or

for (i = 0; i < 10; i++) {
  // ...
  j++;
}