Skip to content

Conversation

mtorp
Copy link
Contributor

@mtorp mtorp commented Sep 18, 2025

Changed

  • Rename --only-compute flag to --dont-apply-fixejs for socket fix, but keep old flag as an alias.

Fixed

  • Sanitize extracted git repository names to be compatible with the Socket API.

The Socket backend validates repository names to ensure they work with GitHub's naming rules. However, GitHub's constraints differ from other platforms like GitLab, so names that work on one platform may not work on another. The sanitizeName function modifies extracted repository names to be compatible with Socket/GitHub.

@mtorp mtorp requested review from jdalton and barslev September 18, 2025 07:05
const errorMessage =
(e as SpawnError)?.['stderr'] || (e as Error)?.['message'] || ''

// Success cases: Socket detected an issue.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The if statement on line 112 is missing curly braces. According to the control structures rule, all control structures must use curly braces even for single statements. The code should be: if (errorMessage.includes('typosquat')) { continue }

Spotted by Diamond (based on custom rule: Custom rules)

Fix in Graphite


Is this helpful? React 👍 or 👎 to let us know.

@jdalton
Copy link
Collaborator

jdalton commented Sep 18, 2025

The 🐉 are now slumbering. All is 🟢

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.

2 participants