Back to all rules
What this rule checks
At least one array is declared (Q6.2)
Configuration
When off, this rule is excluded from pipeline runs. Changes apply immediately.
Code Examples
PASS — this code satisfies the rule
int[] values = new int[5];
FAIL — this code triggers the rule
int a = 1;
int b = 2;
int c = 3;
// use an array instead of separate variables
Overview
Category Topic Arrays
Level Basic
Type Custom Zita
Priority 3 (1 = highest, 5 = lowest)
Status Active
PMD Configuration
Java class nl.utwente.processing.pmd.rules.HasArrayDeclRule
Message template No array declaration found.