Skip to content

feat(rules): wording makes the docs use the names a repository prefers - #61

Draft
PiquelChips wants to merge 1 commit into
feat/rule-docs-imagesfrom
feat/rule-wording
Draft

PiquelChips wants to merge 1 commit into
feat/rule-docs-imagesfrom
feat/rule-wording

Conversation

@PiquelChips

@PiquelChips PiquelChips commented Nov 22, 2026 •

Copy link
Copy Markdown
Member

Stacked on #60; part of a stack adding the standard's rules over manifests, config files, workflows, recipes and docs. Rebased onto #13's head c4a57df.

What and why

D15: sourceorigin writes SourceOrigin, Origin Auth and Origin Account everywhere people read. Clippy's doc-valid-idents only silences a lint.

  • standard.toml's new [wording] table maps each rejected spelling to the preferred one, such as "Source Origin" = "SourceOrigin".
  • No Markdown file holds a rejected spelling as a word, outside code.
  • --fix writes the preferred spelling, outside inline code.
  • UI string literals aren't checked: which crates hold UI text is repository-specific, and literals mix in identifiers.
  • The fix is one Fix::line per line, named by its line.

Measured

piqueld sourceorigin DirkEngine
Violations 0 0 0

Measured read-only at origin/main: piqueld a17710f52, sourceorigin e99cc0e6b, DirkEngine 07e8ba44.

With Sourceorigin, Source Origin, Origin auth and Origin account, sourceorigin's tracked Markdown has 0 hits (grep; no repository has a standard.toml yet). A guard.

Testing

  • New fixture test: rejected spellings in a heading and prose, the same in inline code and a code block, and a longer word containing one; the fix's output.
  • At this commit: Clippy with -D warnings, cargo nextest run --workspace and cargo xtask standard pass with a clean tree; just readme regenerated the rules list.
  • At the stack's tip: just check-changed origin/feat/readme-standard passes (fmt-check, audit, unused, standard, lint, doc, test, doc-test, package).

Checklist

  • The crate's README (its documentation on docs.rs) shows the change, and a repository's xtask can still follow it.
  • A change to the public API is noted for the next release, with what each repository's xtask must change. (standard.toml gains [wording] (optional).)
  • just check-changed passes.

Note

Written by Claude Opus 5.5 in Claude Code (via T3 Code)

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.

1 participant