Skip to content

Commit

Permalink
#1353 Add CI spell checking using "typos"
Browse files Browse the repository at this point in the history
* fix EditorConfig for YAML files to match current state (2-space indentation)

* add https://github.com/crate-ci/typos spell checking
  • Loading branch information
Georgiy-Tugai authored Sep 13, 2024
1 parent c8ace29 commit c32608b
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,6 @@ indent_size = 4
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = false

[*.yml]
indent_size = 2
7 changes: 7 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
17 changes: 17 additions & 0 deletions _typos.toml
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit c32608b

Please sign in to comment.