Skip to content

docs(readme): replace the non-null assertion in the usage example - #14

Merged
Mearman merged 2 commits into
mainfrom
docs/readme-no-assertion
Sep 12, 2026
Merged

Mearman merged 2 commits into
mainfrom
docs/readme-no-assertion

Conversation

@Mearman

@Mearman Mearman commented Sep 12, 2026

Copy link
Copy Markdown
Member

Summary

  • The usage example indexed sessions[0]! — the exact assertion pattern the package's own lint config bans. Replaced with a name-based lookup and an undefined guard, matching how roster results should actually be consumed.

Test plan

  • Example compiles under the package's own strict flags (noUncheckedIndexedAccess)
  • CI verify passes

Indexing a roster result is T | undefined under noUncheckedIndexedAccess;
showing a ! assertion in the first example teaches exactly the pattern
the package's own lint config bans. Look the session up by name and
guard the undefined case instead.
…n exemptions

vitest.config.ts enforces 100 percent statements, branches, functions,
and lines: the coverage run exits non-zero below any threshold, so the
CI step running it is the gate rather than a report. stryker.config.ts
sets thresholds.break to 100 over src/domain and src/schemas, and CI
runs the mutation suite as a required verify step alongside coverage;
prepublishOnly chains the coverage gate ahead of publish. A local ESLint
rule (local/no-stryker-disable, proven firing on a canary) bans
mutation-exemption comments in any form, keeping the 100 percent score
honest: an unkilled mutant must be killed by a test or fixed in the
design, never waived by a comment.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 12, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
🔒 Security Review Completed 2026-09-12T22:01:22.826700Z 6c0ecdc PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@Mearman
Mearman merged commit 2500bdf into main Sep 12, 2026
4 checks passed
@exaclaude

exaclaude Bot commented Sep 12, 2026

Copy link
Copy Markdown

🎉 This PR is included in version 1.1.5 🎉

The release is available on:

Your semantic-release bot 📦🚀

@exaclaude exaclaude Bot added the released label Sep 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant