Skip to content

Commit

Permalink
Merge pull request #352 from waywardmonkeys/ci-add-typos-check
Browse files Browse the repository at this point in the history
ci: Add typos check.
  • Loading branch information
RickyDaMa authored Jul 22, 2024
2 parents e057b95 + 5f36476 commit ecfe188
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,3 +73,12 @@ jobs:

- name: cargo test --all-features
run: cargo test --all-features

# 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/[email protected]
27 changes: 27 additions & 0 deletions .typos.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# See the configuration reference at
# https://github.com/crate-ci/typos/blob/master/docs/reference.md

# 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.

# Match Identifier - Case Sensitive
[default.extend-identifiers]
otFamilyName = "otFamilyName"
otMacName = "otMacName"
otStyleName = "otStyleName"
wdth = "wdth"

# Match Inside a Word - Case Insensitive
[default.extend-words]

[files]
# Include .github, .cargo, etc.
ignore-hidden = false
extend-exclude = [
"/testdata",
# /.git isn't in .gitignore, because git never tracks it.
# Typos doesn't know that, though.
"/.git",
]

0 comments on commit ecfe188

Please sign in to comment.