Repository navigation
Conversation
`npm run check:ci:deep` fails on main in typed lint: src/domain/jsonDuplicateMember.ts:44:13: typescript(switch-exhaustiveness-check): Switch is not exhaustive. Cases not matched: undefined findDuplicateJsonMember switches on `text[index]`, which is `string | undefined` under noUncheckedIndexedAccess. The loop bound keeps index inside the text, so `text.charAt(index)` yields the same character as a plain string and the switch no longer has an unmatched undefined case. Behavior is unchanged. The Deep static lane runs only for full PR qualification, so this error from morluto#10552 reached main and would fail that lane for any labeled PR. Validation: `oxlint --type-aware src/domain/jsonDuplicateMember.ts` reports the error on main and passes after; jsonDuplicateMember and ASAR header tests pass; check:fast passes.
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
[Low impact] This focused change appears safe to merge. SummaryReplaces
Reviews (2) · Last reviewed commit: "fix(domain): keep the duplicate-member s..." · Reviewed by Greptile |
|
Ready to merge: full CI is green on this head, Greptile's latest review is 5/5 with no open threads, and it merges into main 42cab26 without conflicts. |
|
Thanks. Closing as already resolved: on current main the switch in |
Summary
npm run check:ci:deepfails onmain(f3b697d) in typed lint:findDuplicateJsonMember, added in #10552, switches ontext[index]. UndernoUncheckedIndexedAccessthat value isstring | undefined. The loop bound keepsindexinside the text, sotext.charAt(index)yields the same character as a plainstring, and the switch no longer has an unmatchedundefinedcase. Behavior is unchanged.The Deep static lane runs only for full PR qualification, so this error reached
mainand would fail that lane for any labeled PR.Evidence and regression coverage
main,oxlint --type-aware src/domain/jsonDuplicateMember.tsreports the error above. After the change it reports none (exit 0).npm run check:ci:deeprun onmainwas clean except for this error: Typed lint reported7374 files, 1 errors, and knip, metadata, jscpd, TODO scan, architecture guards, test discovery and the Python tests passed.src/domain/jsonDuplicateMember.test.tsand the ASAR header tests that consume the scan pass: 25 passed.Validation performed
oxlint --type-aware src/domain/jsonDuplicateMember.ts: no errors.npm run test:local -- src/artifacts/AsarHeader*.test.ts src/domain/jsonDuplicateMember.test.ts: 25 passed.npm run check:fastpassed.Author readiness
Human owner: @Davmunrey
Before merge
type(scope): outcome.