Repository navigation
fix(checks): restore the lint and format baseline on the default branch - #2993
XiaoBinGan wants to merge 1 commit into
Conversation
The default branch currently fails two merged pull requests' static checks, so every open pull request inherits a red `Static checks` task regardless of its own content. `npm run lint` reports two `max-lines-per-function` errors and `npm run format:check` reports two unformatted files, all four introduced by test blocks merged in the same sweep. The long `describe` blocks keep the repository's established targeted form: a disable comment carrying the reason the block must stay readable as one unit.
Codex Review SummaryThis 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. |
|
|
Independent local check of 09f0aa5 on Windows 11 x64, Node 22.23.1:
This also unblocks the Husky pre-push hook ( |
|
CI-fix track: main's |
|
Withdrawing this as superseded: the default branch already carries an equivalent repair. Verified rather than assumed — No code of mine was lost: |
Summary
Restore the default branch's
Static checks: the twomax-lines-per-functionlint errors and the two unformatted files that the default branch currently reports.Problem and expected behavior
The default branch is red independently of any pull request, so every open PR inherits a failing
Static checkstask. Measured onorigin/main@20b802f1:Expected: the default branch reports no lint errors and no format drift, so a PR's
Static checksreflects only that PR's own content.Change and scope
describe(...)callbacks holding one exhaustive scenario (artifact comparison completeness) and one exhaustive case table (managed operand extent diagnostics). Rather than splitting the scenarios — which would change what each test reads as one flow — each now carries the repository's existing targeted form,// oxlint-disable-next-line max-lines-per-function -- <reason>, as already used intests/boundary/mcp/enhancedTools.01-lists-the-complete-target-open.test.tsandsrc/server/registerEnhancedTools.ts.Contract and boundary impact
None. The four files are tests, plus one test-adjacent reason comment. No CLI/MCP contract, schema, generated artifact, or provider adapter is affected.
Evidence and regression coverage
Measured on this head, with the same commands used to state the problem:
The focused tests are the four affected files; the same commands fail on the parent revision, which is the with/without evidence for this change.
Unavailable coverage
The full
check:prgate and the CI shards were not run locally; the four affected test files were run directly. No real-provider behavior is involved.