Skip to content

[P3][Tier-1] LiveUi.Tooling imports Phoenix.LiveViewTest at module scope (audit C9) #198

Description

@ty13r

Severity: P3 (test dependency compiled into lib) · Tier-1
Co-maintained repo (Pascal = architect).
Location: packages/live_ui/lib/live_ui/tooling.ex:6

LiveUi.Tooling does import Phoenix.LiveViewTest at module scope. Tooling is dev/introspection-only by contract (no production runtime path), so acceptable, but the import compiles LiveViewTest into any env that loads live_ui.

Fix: keep dev/test-fenced (dev-only module or guarded load) so test support isn't compiled into prod.

2026-05-28 cross-repo review — see ariston-ui docs/audits/cross-repo-review-2026-05-28.md (finding C9).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions