Skip to content

Conversation

epage
Copy link
Contributor

@epage epage commented Oct 3, 2025

Seeing that typos was used in rust-lang/rust and seeing how a typo led to a bug in rust-lang/reference#2032, I went ahead and ran it against the blog.

If there is interest, we can set typos up to run in CI.

The config I used:

[files]
extend-exclude = [
]

[default.extend-words]
# Add exclusions here, lines should be like `x = "x"`, where `x` is excluded word.
#
# Also see docs: https://github.com/crate-ci/typos/blob/v1.28.2/docs/reference.md
moreso = "moreso"

[default.extend-identifiers]
# Package name
flate2 = "flate2"
# Last names
Schol = "Schol"
Theis = "Theis"
Cornel = "Cornel"
Signes = "Signes"
Wirth = "Wirth"
fliter = "fliter"
# User names
durin42 = "durin42"
# Don't break file links
platforms_targetted = "platforms_targetted"

[default]
extend-ignore-words-re = [
    # words with length <= 4 chars is likely noise
    '^[a-zA-Z]{1,4}$',
]

extend-ignore-re = [
    '1\.53\.0-prelease.md',  # don't break links
]

[type.svg]
check-file = false  # not likely to have relevant typos but false positives

[type.minified]
check-file = false  # generated content

(acceptance of moreso was copied over from rust-lang/rust; didn't want to get into whether its valid or not with this PR)

Rendered

Copy link
Contributor

@senekor senekor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is great, thank you! Running it in CI would be very nice.

@senekor senekor merged commit c6892b3 into rust-lang:main Oct 3, 2025
5 checks passed
@epage epage deleted the spelling branch October 3, 2025 19:23
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.

2 participants