chore(rescript-12-migration): drop nested package-lock; add editorconfig/gitignore - #16
Merged
Merged
Conversation
…e #private, remove unused externals The migration to rescript@12 (already declared in package.json devDeps as ^12.0.2) was blocked by three v12 incompatibilities flagged in PR #10's "out of scope" footer. This commit addresses all three: - rescript.json: remove "bsc-flags": ["-bs-super-errors"]. Super-errors became the default in rescript@12; the flag is rejected by the new compiler. The whole bsc-flags array is removed since no other flags were set. - src/forges/ForgeAdapter.res: quote the #private polymorphic-variant tag in the visibility type. `private` became a reserved keyword in rescript@12; the canonical fix is to quote the tag as #"private". The variant is only declared at this one site (no constructors or pattern-matches elsewhere reference it), so this is a one-line edit. - tests/Setup.res: remove the eight unused @val/@set externals on process.env. The four @set forms hit a v12 incompatibility (tightened external validation rejected the @set @scope tuple-arg form for env-var assignment); the four @Val getters were never imported (vitest.config.js only references the .res.js path, no caller imports Setup.gitlabToken etc.). All env-var manipulation in this file already happens via the %%raw block, so the externals are dead code. Verified no other file imports Setup.gitlabToken / Setup.setGitlabToken etc. — grep "Setup\." returned only vitest.config.js's setupFiles entry. This unblocks the rescript@12 build that PR #10 deliberately punted to a separate task. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
…fig/gitignore Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
🔍 Hypatia Security ScanFindings: 48 issues detected
View findings[
{
"reason": "Stray AI.a2ml in root -- use 0-AI-MANIFEST.a2ml only",
"type": "banned",
"file": "AI.a2ml",
"action": "delete",
"rule_module": "root_hygiene",
"severity": "high"
},
{
"reason": "Required file missing",
"type": "missing",
"file": "SECURITY.md",
"action": "create",
"rule_module": "root_hygiene",
"severity": "high"
},
{
"reason": "Issue in codeql.yml",
"type": "missing_workflow",
"file": "codeql.yml",
"action": "create",
"rule_module": "workflow_audit",
"severity": "high"
},
{
"reason": "Issue in scorecard.yml",
"type": "missing_workflow",
"file": "scorecard.yml",
"action": "create",
"rule_module": "workflow_audit",
"severity": "high"
},
{
"reason": "Issue in quality.yml",
"type": "missing_workflow",
"file": "quality.yml",
"action": "create",
"rule_module": "workflow_audit",
"severity": "high"
},
{
"reason": "Issue in mirror.yml",
"type": "missing_workflow",
"file": "mirror.yml",
"action": "create",
"rule_module": "workflow_audit",
"severity": "high"
},
{
"reason": "Required file missing (condition: public_repo)",
"type": "missing_requirement",
"file": "SECURITY.md",
"action": "create",
"rule_module": "cicd_rules",
"severity": "high"
},
{
"reason": "Required file missing (condition: public_repo)",
"type": "missing_requirement",
"file": ".github/workflows/scorecard.yml",
"action": "create",
"rule_module": "cicd_rules",
"severity": "high"
},
{
"reason": "String.to_existing_atom with user input exhausts atom table -- use to_existing_atom (1 occurrences, CWE-400)",
"type": "elixir_atom_from_user",
"file": "/home/runner/work/claude-integrations/claude-integrations/firefox-lsp/lib/lsp/server.ex",
"action": "flag",
"rule_module": "code_safety",
"severity": "high"
},
{
"reason": "eval() -- arbitrary code execution (1 occurrences, CWE-94)",
"type": "js_eval",
"file": "/home/runner/work/claude-integrations/claude-integrations/firefox-mcp/extension-mv3/background.js",
"action": "flag",
"rule_module": "code_safety",
"severity": "critical"
}
]Powered by Hypatia Neurosymbolic CI/CD Intelligence |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Sibling migration branch to #14 (fix/rescript-12-migration) — SAME repo. Pushed from the /dev/repos/ci clone (remote now SSH; token scrubbed). Consolidate with #14 if redundant.
🤖 Generated with Claude Code