Skip to content

cli: no em dashes in CLI and rule messages, with a guard test #2211

Closed

Description

@nc9

Follow-up from #2086 (graded 2026-11-21 against main f50d1ad). The em dashes that #2086 named were fixed, but the CLI still prints em dashes in other messages:

  • ax/markdown-response: "No Markdown response — ..."
  • ax/token-weight-ratio: "Visible text is under 15% ... — ..."
  • apps/cli/src/.../auth.ts lines 30 and 94

Our CLI copy uses a colon, comma or period instead of an em dash. A guard test should stop them from coming back.

Acceptance Criteria

  • The ax/markdown-response and ax/token-weight-ratio messages contain no em dash (U+2014)
  • The strings in auth.ts (lines 30 and 94 on f50d1ad) contain no em dash
  • A test fails when any user-facing CLI or rule message string contains an em dash, and it passes on the fixed tree
  • Running squirrel audit https://nutshop.squirrelscan.com --max-pages 30 prints no em dash

nik

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugclisize: XS

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions