Back to all rules
What this rule checks
Every declared top-level function is called somewhere in the sketch
Configuration
When off, this rule is excluded from pipeline runs. Changes apply immediately.
Code Examples
PASS — this code satisfies the rule
void drawStar() {
  ellipse(50, 50, 5, 5);
}
void setup() {
  size(400, 400);
}

void draw() {
  background(255);
  drawStar();
}
FAIL — this code triggers the rule
void drawStar() {
  ellipse(50, 50, 5, 5);
}
void setup() {
  size(400, 400);
}

void draw() {
  background(255);
  ellipse(50, 50, 5, 5);
}
Overview
Category PDPS
Type Custom Zita
Priority 3 (1 = highest, 5 = lowest)
Status Active
PMD Configuration
Java class nl.utwente.processing.pmd.rules.AllFunctionsUsedRule
Message template Declared function is never called.