chore: clean up existing emdash/endash violations (~1170 occurrences) · Issue #24526 · coder/coder · GitHub
Skip to content

chore: clean up existing emdash/endash violations (~1170 occurrences) #24526

@mafredri

Description

@mafredri

The no-emdash lint rule was added in #24375 but only enforces on new code (added lines in the diff). There are ~1170 existing violations across the repo.

Scope

  • Replace all Unicode emdash (U+2014) and endash (U+2013) characters with commas, semicolons, periods, or restructured sentences.
  • Heaviest concentrations: coderd/x/chatd/, site/src/pages/AgentsPage/, docs/ai-coder/agents/, scripts/releaser/.
  • Generated files (api/typesGenerated.ts) inherit from Go source doc comments; fix the Go source, then regenerate.
  • Agent instruction files (AGENTS.md, site/AGENTS.md, .claude/docs/GO.md) contain emdash in the rule text and surrounding prose.

After cleanup

Simplify scripts/check_emdash.sh to scan all tracked files instead of parsing diffs. The script reduces from ~114 lines to ~15.

Refs #24375

🤖 Filed by Coder Agents on behalf of @mafredri.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions