feat(enrichment): add magic-number analyzer - #3324
Conversation
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
|
Warning 🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨 ⏸️ Gittensory review result - manual review recommendedReview updated: 2026-07-05 02:51:35 UTC
⏸️ Suggested Action - Manual Review Review summary Nits — 6 non-blocking
Review context
Contributor next steps
Signal definitions
🟩 Safe / merged · 🟦 Advisory · 🟨 Held for review · 🟥 Blocked / closed 💰 Earn for open-source contributions like this. Gittensor lets GitHub contributors earn for the work they already do — register to start earning →. Checked by Gittensory, a quiet PR intelligence layer for OSS maintainers.
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3324 +/- ##
=======================================
Coverage 93.76% 93.76%
=======================================
Files 277 277
Lines 30507 30507
Branches 11108 11108
=======================================
Hits 28605 28605
Misses 1257 1257
Partials 645 645
🚀 New features to boost your workflow:
|
Summary
magicNumberREES analyzer for non-trivial numeric literals newly introduced in non-test source diffs.Fixes #2018
Scope
type(scope): short summaryConventional Commit format, for examplefix(api): restore profile access checks.CONTRIBUTING.mdand does not reintroduce GitHub Pages, VitePress,site/, orCNAME.Validation
git diff --checknpm run actionlintnpm run typechecknpm run test:coveragelocally;codecov/patchrequires >=99% coverage of the lines AND branches you changed (aim for 100% on your diff so CI variance does not fail near the threshold). Global coverage is a non-blocking trend with a loose 90% backstop, not the gate.npm run test:workersnpm run build:mcpnpm run test:mcp-packnpm run ui:openapi:checknpm run ui:lintnpm run ui:typechecknpm run ui:buildnpm audit --audit-level=moderateAdditional validation:
npm --prefix review-enrichment run buildnode review-enrichment/test/magic-number.test.tsnode review-enrichment/test/analyzer-registry.test.tsnode review-enrichment/scripts/generate-analyzer-metadata.mjs --checknpm run db:migrations:checkIf any required check was skipped, explain why:
npm run test:coveragewas not run locally; this change is covered by the focused REES analyzer suite and CI will run coverage in its Linux environment.npm run test:mcp-packwas not run; this PR does not change MCP packaging.npm run ui:openapi:checkwas not run separately;npm run ui:buildregenerated OpenAPI successfully and the intended UI change is generated REES analyzer metadata.npm run ui:lintfails locally on Windows CRLF formatting across many untouched UI files before reaching this change.npm run rees:testwas also run locally: 918/920 tests passed; the two failures were existing Sentry CLI upload tests whose mocked process returned a Windows-style null status. The new magic-number tests passed in that run.Safety
UI Evidencesection below with JPG/JPEG or PNG screenshots arranged as organized, captioned, clickable thumbnails. SVG screenshots are not used as review evidence. Review-only screenshots or recordings are not committed to the repository.UI Evidence
No visible UI change. The UI diff is generated analyzer metadata consumed by the existing REES analyzer reference surface.
Notes
{ file, line, value }and does not copy surrounding source into rendered briefs.