ci: Add typos check (#698)

This commit is contained in:
Bruce Mitchener
2024-07-23 16:29:09 +07:00
committed by GitHub
parent ce17947fd7
commit b7347860f7
2 changed files with 22 additions and 0 deletions

View File

@@ -89,3 +89,11 @@ jobs:
run: cd crates/rapier2d && cargo build --verbose --target wasm32-unknown-emscripten --features simd-stable;
- name: build rapier3d --features simd-stable
run: cd crates/rapier3d && cargo build --verbose --target wasm32-unknown-emscripten --features simd-stable;
# If this fails, consider changing your text or adding something to .typos.toml
# You can find typos here: https://crates.io/crates/typos'
typos:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: check typos
uses: crate-ci/typos@v1.23.2

14
.typos.toml Normal file
View File

@@ -0,0 +1,14 @@
# 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.
# Case senstive, matches entire word.
[default.extend-identifiers]
anc_color = "anc_color"
PN = "PN"
rady = "rady"
# Case insenstive, matches inside word.
[default.extend-words]
toi = "toi"