ForLoopsMustUseBraces

Avoid using 'for' statements without using curly braces.

This rule is defined by the following XPath expression:

 
//ForStatement[not(Statement/Block)]
 
                 

Example:

                

public void foo() {
 for (int i=0; i<42;i++)
   foo();
}