Skip to content

fix(cli): no em dashes in CLI and rule messages, with a guard test #2211 - #2217

Merged
nc9 merged 2 commits into
mainfrom
boat/no-em-dashes-2211
Nov 21, 2026
Merged

nc9 merged 2 commits into
mainfrom
boat/no-em-dashes-2211

Conversation

@nc9

@nc9 nc9 commented Nov 21, 2026

Copy link
Copy Markdown
Contributor

Closes #2211

Replaces em dashes (U+2014) in every user-facing string under apps/cli/src and packages/*/src with a colon, comma or parentheses (incl. ax/markdown-response, ax/token-weight, credentials/auth messages). Functional uses (title-separator regexes, entity table, synthetic fixture titles) are spelled as the escape sequence. Adds apps/cli/tests/no-em-dash.test.ts, which transpiles each source file (dropping comments) and fails on any literal em dash. Golden finding-messages and affected tests updated. The report null placeholder is now '-'.

Acceptance:

  • markdown-response and token-weight messages: no em dash (guard test)
  • auth/credentials strings: no em dash (guard test)
  • guard test fails on any literal em dash in non-comment source, passes on fixed tree (no-em-dash.test.ts, 2 tests)
  • live 'squirrel audit nutshop...' not run here (no network); every string it prints comes from the guarded source

Gates: apps/cli format:check, lint, typecheck pass; typecheck in changed packages pass; synthetic-site format/lint pass. Suites via scripts/test-suites.ts: cli 4649 pass/0 fail, rules 12607/0, audit-engine 2394/0, rest 3932/0, report 1414/0, crawler 1181/0 (before the final test-only edits, which were re-run by path). changelog check OK.
Skill change needed: no.

@nc9
nc9 force-pushed the boat/no-em-dashes-2211 branch from 964ad02 to b41524c Compare November 21, 2026 22:14
@nc9
nc9 marked this pull request as ready for review November 21, 2026 22:34
@nc9
nc9 merged commit 53ea191 into main Nov 21, 2026
10 checks passed
@nc9
nc9 deleted the boat/no-em-dashes-2211 branch November 21, 2026 22:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

1 participant