Skip to content

Orphaned doc comment in focus-manifest.ts documents resolveEnrichmentAnalyzerToggles but sits above resolveReviewAutoReviewConfig #8021

Description

@JSONbored

Context

src/signals/focus-manifest.ts:352-360 has two doc comments stacked in front of one function. Lines 352-354 document review.enrichment analyzer toggles (referencing #2050) but sit directly above resolveReviewAutoReviewConfig's own doc comment (lines 355-357, referencing #2060) and function (lines 358-360).

The function the first block (352-354) actually describes, resolveEnrichmentAnalyzerToggles, is defined 24 lines later at line 378, with no doc comment of its own — it lost its comment somewhere along the way (likely a reorder), and resolveReviewAutoReviewConfig ended up with two doc blocks in front of it instead of one.

This is a unique occurrence in src/signals/**/src/github/**/src/mcp/**/src/services/** — a full grep for stacked *//** doc blocks across those directories found only this one instance, so it's an isolated drift from a reorder, not a systemic pattern needing a broader sweep.

Requirements

  • Move the review.enrichment doc comment (lines 352-354) down to sit directly above resolveEnrichmentAnalyzerToggles (line 378), where it actually belongs.
  • Leave resolveReviewAutoReviewConfig's own doc comment (lines 355-357) as its sole doc comment.

Deliverables

Test Coverage Requirements

Docs-only change — no test coverage obligation (no logic changes), consistent with this repo's convention for comment-only fixes.

Expected Outcome

Each function in focus-manifest.ts has its own accurate doc comment directly above it, with no orphaned block describing the wrong function.

Links & Resources

  • src/signals/focus-manifest.ts (lines 352-360 for the misplaced comment, line 378 for its real home)

Metadata

Metadata

Assignees

No one assigned

    Labels

    gittensor:bugGittensor-scored bug fix — scores a 0.05x multiplier.help wantedExtra attention is needed

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions