Skip to content

Clear CodeQL note alerts (ASI + unused local)#18

Merged
Isonimus merged 2 commits into
mainfrom
fix/codeql-note-alerts
Jun 10, 2026
Merged

Clear CodeQL note alerts (ASI + unused local)#18
Isonimus merged 2 commits into
mainfrom
fix/codeql-note-alerts

Conversation

@Isonimus

Copy link
Copy Markdown
Contributor

Resolves the two outstanding note-level CodeQL alerts on main.

Alert Rule Fix
#2 js/automatic-semicolon-insertionDOMObserver.ts:106 Added the missing ; after the forEach(...) call.
#1 js/unused-local-variabledefineGetterDetector.ts:174 Removed the unused const value binding; the property access (which exists only to trigger the getter) is now expressed as void …testProp, dropping the eslint-disable too.

No behavior change. tsc --noEmit clean.

The high-severity js/path-injection alert (#3, e2e/serve.mjs) was triaged separately and dismissed as a false positive — the fixture server is 127.0.0.1-only and already guards traversal via normalize + startsWith(DIST + '/').

Isonimus added 2 commits June 10, 2026 16:15
- DOMObserver: add missing semicolon after forEach call (js/automatic-semicolon-insertion).
- defineGetterDetector: drop unused `const value` assignment; use `void` to keep the getter-triggering property access as a pure side effect (js/unused-local-variable).
Finalize the staged 0.1.1 (dist @/ import leak fix) and roll in the #18 CodeQL note-alert cleanups. Version bumped 0.1.0 -> 0.1.1.
@Isonimus Isonimus merged commit 4126640 into main Jun 10, 2026
6 checks passed
@Isonimus Isonimus deleted the fix/codeql-note-alerts branch June 10, 2026 14:40
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