Skip to content

refactor(cli): use fixMarkdown for fix mode #111

Description

@luojiyin1987

completed by #112

Parent

What to build

Use Core fixMarkdown for CLI fix mode after lint-md/lint-md#229 is stable.

Keep lint mode on the legacy lint-only call. Keep the current worker protocol unchanged.

Acceptance criteria

  • Fix mode calls fixMarkdown.
  • Lint mode keeps its current legacy Core call.
  • The worker keeps the current isFixMode field.
  • Rule settings reach both Core calls unchanged.
  • Existing lint output stays unchanged.
  • Existing --fix output stays unchanged.
  • Existing fix metrics stay available in development output.
  • Existing convergence warnings stay unchanged.
  • Existing unapplied-fix warnings stay unchanged.
  • Worker tests cover lint and fix modes.

Blocked by

Non-goals

  • A new lint-only Core API.
  • Worker protocol changes.
  • Metrics configuration.
  • Core legacy API deprecation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs-triageNeeds initial maintainer triage

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions