Back to all rules
What this rule checks
Flags submissions with classes defined in a single .pde file — AI tools typically generate everything in one file
Configuration
When off, this rule is excluded from pipeline runs. Changes apply immediately.
Code Examples
PASS — this code satisfies the rule
// sketch.pde
Ball ball = new Ball();

void setup() {
  size(400, 400);
}

void draw() {
  background(255);
  ball.show();
}

// Ball.pde, a tab of its own
class Ball {
  void show() {
    ellipse(200, 200, 30, 30);
  }
}
FAIL — this code triggers the rule
Ball ball = new Ball();

void setup() {
  size(400, 400);
}

void draw() {
  background(255);
  ball.show();
}

class Ball {  // the class shares the one .pde file
  void show() {
    ellipse(200, 200, 30, 30);
  }
}
Overview
Category Academic Integrity
Type Custom Zita
Priority 2 (1 = highest, 5 = lowest)
Status Active
PMD Configuration
Message template Single-file submission with classes detected.