Skip to content

Refactor writeReport() — separate concerns into smaller functions #1

Description

@xhulz

src/core/reporter.ts — writeReport() has ~128 lines and handles 8 distinct responsibilities:
directory creation, suggestion matching, verdict table, finding blocks, next step text,
forge interpretation, cross-contract section, and file writing.

Break it into smaller named helpers, each independently testable.

Acceptance criteria:

  • writeReport() becomes an orchestrator of smaller functions
  • Each helper has a unit test
  • No change in report output format

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions