Back to all rules
What this rule checks
Uses 2+ shape functions, e.g. rect(), ellipse(), line()
Configuration
When off, this rule is excluded from pipeline runs. Changes apply immediately.
Code Examples
PASS — this code satisfies the rule
void draw() {
  rect(10, 10, 50, 50);
  ellipse(200, 200, 30, 30);
}
FAIL — this code triggers the rule
void draw() {
  background(0);
  // no shape functions used
}
Overview
Category Topic Getting Started
Level Basic
Type Custom Zita
Priority 3 (1 = highest, 5 = lowest)
Status Active
PMD Configuration
Java class nl.utwente.processing.pmd.rules.Has2DShapesRule
Message template Few or no 2D shapes found in the code.