mirror of https://github.com/linebender/xilem
Check for typos in CI (#306)
Currently, the only legit typo being found is `seeked` but I'm not sure what to do about that. Would be nice to check for new typos in CI anyways, right? --------- Co-authored-by: Kaur Kuut <strom@nevermore.ee>
This commit is contained in:
parent
380d39dea4
commit
9c1eb3b2fe
|
@ -120,3 +120,12 @@ jobs:
|
|||
- name: cargo doc
|
||||
# We currently skip checking masonry's docs
|
||||
run: cargo doc --workspace --all-features --no-deps --document-private-items -Zunstable-options -Zrustdoc-scrape-examples --exclude masonry
|
||||
|
||||
# If this fails, consider changing your text or adding something to .typos.toml
|
||||
typos:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: check typos
|
||||
uses: crate-ci/typos@v1.21.0
|
||||
|
|
|
@ -0,0 +1,29 @@
|
|||
# See the configuration reference at
|
||||
# https://github.com/crate-ci/typos/blob/master/docs/reference.md
|
||||
|
||||
[default]
|
||||
extend-ignore-re = [
|
||||
# Matches lorem ipsum text.
|
||||
# In general, regexes are only matched until the end of a line by typos,
|
||||
# and the repeated matcher at the end of both of these also ensures that
|
||||
# matching ends at quotes or symbols commonly used to terminate comments.
|
||||
"Lorem ipsum [a-zA-Z .,]*",
|
||||
"Phasellus in viverra dolor [a-zA-Z .,]*",
|
||||
]
|
||||
|
||||
# Corrections take the form of a key/value pair. The key is the incorrect word
|
||||
# and the value is the correct word. If the key and value are the same, the
|
||||
# word is treated as always correct. If the value is an empty string, the word
|
||||
# is treated as always incorrect.
|
||||
|
||||
[default.extend-identifiers]
|
||||
FillStrat = "FillStrat" # short for strategy
|
||||
|
||||
# Case insensitive
|
||||
[default.extend-words]
|
||||
seeked = "seeked" # Part of the HTML standard
|
||||
|
||||
[files]
|
||||
extend-exclude = [
|
||||
"masonry/resources/i18n"
|
||||
]
|
Loading…
Reference in New Issue