Skip to content

chore: fix the oxlint violations in the reporting and release helper scripts - #336

Merged
cryptodev-2s merged 6 commits into
mainfrom
chore/fix-oxlint-reporting-scripts
Nov 18, 2026
Merged

cryptodev-2s merged 6 commits into
mainfrom
chore/fix-oxlint-reporting-scripts

Conversation

@cryptodev-2s

@cryptodev-2s cryptodev-2s commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Fixes the oxlint violations in the reporting and release helper scripts, removes the unused csv-parse dependency, and sets the coverage thresholds to the new measured values.


Note

Low Risk
Lint-only refactors and tooling cleanup in CI helper scripts; no production app logic or auth flows changed beyond a CSV row fix that replaces a sparse array with an empty column.

Overview
Resolves oxlint findings across Playwright test-health reporting, flaky-test Slack reports, RC commit CSV generation, release-sheet updates, and related GitHub Actions helpers—mostly style and lint compliance (unicode regex flags, const/let, shorthand properties, braces, JSDoc, safer parseInt radix) with no intended behavior changes.

Cleans up oxlint-suppressions.json by dropping entries for rules now satisfied in those files, removes the unused csv-parse dependency (release sheet parsing already uses manual line splitting), and bumps Vitest coverage thresholds to the latest measured values.

Reviewed by Cursor Bugbot for commit 3b767f7. Bugbot is set up for automated code reviews on this repo. Configure here.

@cryptodev-2s
cryptodev-2s marked this pull request as ready for review November 17, 2026 13:52
@cryptodev-2s cryptodev-2s self-assigned this Nov 17, 2026

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit b261d29. Configure here.

Comment thread package.json Resolved
const topologyJsonUrl =
'https://raw.githubusercontent.com/MetaMask/MetaMask-planning/refs/heads/main/topology.json';
const githubToken = process.env.GITHUB_TOKEN;
const topologyToken = process.env.GITHUB_TOKEN;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

What lint violation does this fix? 😅

@cryptodev-2s cryptodev-2s Nov 18, 2026 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

None I left it in purpose because its just more readable which token is this. I can rename it back if we prefer.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

It's fine, was just curious.

}

// Helper function to escape CSV fields
function escapeCSV(field) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Was this unused?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yes unused

if (lines[i].trim() === '') continue; // Skip empty lines
if (lines[i].trim() === '') {
continue;
} // Skip empty lines

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Either remove this, or move it to the top of the if block.

Suggested change
} // Skip empty lines
}

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

moved here 7276e88

@cryptodev-2s
cryptodev-2s requested a review from Mrtenz November 18, 2026 08:21
@cryptodev-2s
cryptodev-2s merged commit 23e07c7 into main Nov 18, 2026
12 checks passed
@cryptodev-2s
cryptodev-2s deleted the chore/fix-oxlint-reporting-scripts branch November 18, 2026 11:52
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.

3 participants