ArrayLoopAggregateRule
What this rule checks
A for loop folds array elements into a variable declared outside the loop (e.g. sum = sum + a[i])
Configuration
When off, this rule is excluded from pipeline runs. Changes apply immediately.
Code Examples
Overview
| Category | Topic Arrays |
| Level | Intermediate |
| Type | Custom Zita |
| Priority | 3 (1 = highest, 5 = lowest) |
| Status | Active |
PMD Configuration
| Java class | nl.utwente.processing.pmd.rules.ArrayLoopAggregateRule |
| Message template | No for loop folds array elements into a variable (e.g. sum = sum + a[i]). |