From c32608bd4108e8d21767c324d7573f58f4ef16c4 Mon Sep 17 00:00:00 2001 From: Georgiy Tugai <3786806+Georgiy-Tugai@users.noreply.github.com> Date: Fri, 13 Sep 2024 18:53:54 +0200 Subject: [PATCH] #1353 Add CI spell checking using "typos" * fix EditorConfig for YAML files to match current state (2-space indentation) * add https://github.com/crate-ci/typos spell checking --- .editorconfig | 3 +++ .github/workflows/ci.yml | 7 +++++++ _typos.toml | 17 +++++++++++++++++ 3 files changed, 27 insertions(+) create mode 100644 _typos.toml diff --git a/.editorconfig b/.editorconfig index bc4f2de744..d6be9e311f 100644 --- a/.editorconfig +++ b/.editorconfig @@ -7,3 +7,6 @@ indent_size = 4 end_of_line = lf insert_final_newline = true trim_trailing_whitespace = false + +[*.yml] +indent_size = 2 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a8d77fd680..192ef3625e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,6 +7,13 @@ concurrency: cancel-in-progress: true jobs: + typos: + runs-on: ubuntu-latest + name: typos + steps: + - uses: actions/checkout@v4 + - uses: crate-ci/typos@master + build-linux: runs-on: ubuntu-latest timeout-minutes: 30 diff --git a/_typos.toml b/_typos.toml new file mode 100644 index 0000000000..c1e7980086 --- /dev/null +++ b/_typos.toml @@ -0,0 +1,17 @@ +files.extend-exclude = ["distr/*"] + +# typos can't handle "2nd" as a word (yet?) +default.extend-ignore-identifiers-re = ["_2nd"] + +[default.extend-words] +ser = "ser" # serialization +thr = "thr" # thread + +[default.extend-identifiers] +ba = "ba" # block_allocator +ecs_eis = "ecs_eis" # entity index store (entity_index.h) +numer = "numer" # numerator (posix_impl.inl) +ot = "ot" # Opaque Type or Other Table +Fo = "Fo" # used in test cases/examples +UE4 = "UE4" +PNGs = "PNGs"