Reports for loops which contain neither initialization or update components, and can thus be replaced by simpler while statements. Example:

  for(; exitCondition(); ) {
    process();
  }
This loop can be replaced with

  while(exitCondition()) {
    process();
  }
A fix action is also available for other for loops, so you can replace any for loop with while.

Use the checkbox below if you wish this inspection to ignore for loops with trivial or non-existent conditions.