Pattern: Empty for
statement
Issue: -
Checks for empty for blocks. Empty for statements are confusing and serve no purpose.
Here is an example of code that produces a violation:
def someMethod() {
for (int i=0; i < 23; i++) {
// empty
}
}