diff --git a/.editorconfig b/.editorconfig index bc4f2de74..d6be9e311 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 a8d77fd68..192ef3625 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 000000000..c1e798008 --- /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"