Skip to content

Remove unnecessary interface exports (ApplyOptions, CleanOptions, StatsOptions, CompareOptions) #133

@that-github-user

Description

@that-github-user

Summary

Four interface types are exported but never imported outside their own module (+ test file):

  • ApplyOptionssrc/commands/apply.ts:42 — only used in apply() signature and apply.test.ts
  • CleanOptionssrc/commands/clean.ts:9 — only used in clean() signature and clean.test.ts
  • StatsOptionssrc/commands/stats.ts:7 — only used in stats() signature and stats.test.ts
  • CompareOptionssrc/commands/compare.ts:7 — only used in compare() signature and its test

Recommendation

Remove the export keyword from these interfaces. Tests can construct the options as plain objects without importing the type. This reduces unnecessary public API surface.

Additional notes

  • evaluate.ts has its own padRight (line ~210) and pct helpers that duplicate padRight from display.ts. Consider consolidating.
  • No TODO/FIXME/HACK comments found anywhere in src/ — the codebase is clean.
  • All other exports are actively used across modules.

Found during codebase audit (2026-03-28).

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