HasLoopCounterUseRule
What this rule checks
A for loop uses its counter variable inside the loop body (e.g. print(i))
Configuration
When off, this rule is excluded from pipeline runs. Changes apply immediately.
Code Examples
Overview
| Category | Topic Iteration |
| Level | Intermediate |
| Type | Custom Zita |
| Priority | 3 (1 = highest, 5 = lowest) |
| Status | Active |
PMD Configuration
| Java class | nl.utwente.processing.pmd.rules.HasLoopCounterUseRule |
| Message template | No for loop uses its counter variable inside the loop body. |