From b7347860f71179a4675ec785644abe1bb09e415a Mon Sep 17 00:00:00 2001 From: Bruce Mitchener Date: Tue, 23 Jul 2024 16:29:09 +0700 Subject: ci: Add `typos` check (#698) --- .github/workflows/rapier-ci-build.yml | 8 ++++++++ .typos.toml | 14 ++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 .typos.toml diff --git a/.github/workflows/rapier-ci-build.yml b/.github/workflows/rapier-ci-build.yml index 3962323..c44704b 100644 --- a/.github/workflows/rapier-ci-build.yml +++ b/.github/workflows/rapier-ci-build.yml @@ -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 diff --git a/.typos.toml b/.typos.toml new file mode 100644 index 0000000..b9c0215 --- /dev/null +++ b/.typos.toml @@ -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" -- cgit