Skip to content

refactor(oracle-gen): drop stats flag from CardWorkCtx; count unimplemented faces unconditionally#5460

Merged
matthewevans merged 1 commit into
mainfrom
ship/oracle-gen-stats-refactor
Jul 9, 2026
Merged

refactor(oracle-gen): drop stats flag from CardWorkCtx; count unimplemented faces unconditionally#5460
matthewevans merged 1 commit into
mainfrom
ship/oracle-gen-stats-refactor

Conversation

@matthewevans

Copy link
Copy Markdown
Member

Review follow-up for #5458 (branch was merge-queue-frozen when the fix was ready, so it lands separately).

Addresses the Gemini [HIGH] bool-field finding on CardWorkCtx — by removal rather than a StatsMode enum: the per-face card_face_has_unimplemented_parts scan is trivial next to the ~5ms/card parse, so unimplemented_faces is now computed unconditionally and --stats gates only the printout (its actual meaning). The worker context loses the CLI coupling entirely.

No behavior change to any output: card-data.json / card-names.json are unaffected (the counter feeds only the --stats stderr report, whose gate is unchanged at the print site). Verified clean under clippy -D warnings.

…mented faces unconditionally

Review follow-up for PR #5458: the per-face unimplemented scan is trivial
next to the parse, so the counter is always computed and --stats gates
only the printout. Removes the CLI coupling (and the bool field) from the
worker context.
@matthewevans matthewevans enabled auto-merge July 9, 2026 20:40
@gemini-code-assist

Copy link
Copy Markdown
Contributor

Note

Gemini is unable to generate a review for this pull request due to the file types involved not being currently supported.

@matthewevans matthewevans disabled auto-merge July 9, 2026 20:46
@matthewevans matthewevans merged commit 36817db into main Jul 9, 2026
12 checks passed
@matthewevans matthewevans deleted the ship/oracle-gen-stats-refactor branch July 9, 2026 20:46
@github-actions

github-actions Bot commented Jul 9, 2026

Copy link
Copy Markdown

Parse changes introduced by this PR

Baseline pending for 606e22934c6053f51311343c250195c25eaaaea7 — this populates once main publishes its coverage snapshot (a few minutes after that commit landed).

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant