Skip to content

Add mixin method-collision detection script #48

Description

@zntznt

Problem

The App class is split across 7 mixin files (app-props.js, app-demos.js, etc.). Each copies methods onto App.prototype via Object.defineProperty. If two mixins define the same method name, the later one silently overwrites the earlier — no linting, no warning, no test.

Plan

Add a small Node script scripts/check-mixins.js that:

  1. Parses each mixin file for class AppXxx { ... } and extracts method names
  2. Reports any method name that appears in more than one mixin
  3. Exit 1 if overlaps found

Run as a pre-test step.

Effort

~30 minutes. New file only. ~30 lines of Node.js.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions