Skip to content

fix(ci,dom): pin tree-sitter-cli for Sonar; land #56 Window/Document/utility - #758

Merged
hyperpolymath merged 1 commit into
mainfrom
feat/56-window-sonar
Sep 21, 2026
Merged

hyperpolymath merged 1 commit into
mainfrom
feat/56-window-sonar

Conversation

@hyperpolymath

Copy link
Copy Markdown
Owner

Sonar QG on main failed C Security Rating on New Code because .github/workflows/ci.yml ran unlocked npm install -g tree-sitter-cli@^0.25.0 (githubactions:S6505 / S8543). Pin tree-sitter-cli@0.25.0 and pass --ignore-scripts on every install of it; same flag on the vscode-smoke npm install.

#56 PR 4 (original Window / Document / utility inventory):

  • stdlib/Dom.affine externs for the 11 Window + 7 Document + 4 utility bindings (fetch already lives in Http)
  • Deno-ESM __as_dom* lowerings
  • tests/codegen-deno/dom_window_smoke.{affine,harness.mjs}

Not in this PR: native-preview2 (#486 one-way door — needs wasm-tools + a compiler in CI, not a drive-by flip). Record-literal attrs remain on #56.

Refs #56

…utility

SonarCloud QG on main failed C-security on new code because
`.github/workflows/ci.yml` ran `npm install -g tree-sitter-cli@^0.25.0`
(unlocked version + lifecycle scripts). Pin 0.25.0 and pass
`--ignore-scripts` on every tree-sitter-cli install; same flag on the
vscode-smoke `npm install`.

#56 PR 4 (the original Window/Document/utility inventory):
- stdlib/Dom.affine externs for addEventListener/matchMedia/windowOpen/
  innerWidth/Height/devicePixelRatio/setTimeout/Interval/clear*,
  createElement/getElementById/body* / Date.now / Number.isFinite/isNaN /
  btoa
- Deno-ESM `__as_dom*` lowerings + builtins
- tests/codegen-deno/dom_window_smoke.{affine,harness.mjs}

Native-preview2 (#486 one-way door) is not in this commit.

Refs #56
@coderabbitai

coderabbitai Bot commented Sep 21, 2026

Copy link
Copy Markdown

Review Change StackReview Change Stack

Note

Currently processing new changes in this PR. This may take a few minutes, please wait...

⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Advanced

Run ID: de6ba852-51a3-4cd7-b4c0-50e595f47086

📥 Commits

Reviewing files that changed from the base of the PR and between ff7ccd7 and c2f2427.

📒 Files selected for processing (8)
  • .github/workflows/ci.yml
  • docs/CAPABILITY-MATRIX.adoc
  • docs/ECOSYSTEM.adoc
  • docs/TECH-DEBT.adoc
  • lib/codegen_deno.ml
  • stdlib/Dom.affine
  • tests/codegen-deno/dom_window_smoke.affine
  • tests/codegen-deno/dom_window_smoke.harness.mjs
 _______________________________
< Grow a pair... of test cases. >
 -------------------------------
  \
   \   \
        \ /\
        ( )
      .( o ).
✨ Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@sonarqubecloud

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
C Security Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

@hyperpolymath
hyperpolymath merged commit 97dc674 into main Sep 21, 2026
10 of 18 checks passed
@hyperpolymath
hyperpolymath deleted the feat/56-window-sonar branch September 21, 2026 08:31
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