feat(enrichment): deep-nesting / arrow-anti-pattern heuristic analyzer - #3536
Conversation
Fixes JSONbored#2030 Co-authored-by: Cursor <cursoragent@cursor.com>
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
|
Warning 🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨 ⏸️ Gittensory review result - manual review recommendedReview updated: 2026-07-05 16:20:00 UTC
⏸️ Suggested Action - Manual Review Review summary Nits — 5 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 #3536 +/- ##
=======================================
Coverage 93.09% 93.09%
=======================================
Files 301 301
Lines 31450 31450
Branches 11483 11483
=======================================
Hits 29279 29279
Misses 1517 1517
Partials 654 654
🚀 New features to boost your workflow:
|
Summary
Fixes #2030
DeepNestingFindingand a localdeepNestinganalyzer that flags newly-added control-flow blocks whose nesting depth exceeds 4 inside a contiguous run of added linesif/for/while/switch/try/catch/else/do/with, arrow=> {, and function bodies — object-literal{braces are pushed on a stack but do not increase depthmaxDepthto the defaultsrc/review/enrichment-analyzer-names.tsand generated.env.example/ UI metadatareview-enrichment/test/deep-nesting.test.tscovering deep control-flow flag, object-literal non-flag, threshold edges, context reset, cap, and brief renderingTest plan
cd review-enrichment && npm run build && npm run metadata && node --test test/deep-nesting.test.ts test/analyzer-registry.test.tsvalidate-codeMade with Cursor