Skip to content

Commit

Permalink
Merge pull request #641 from zyf722/ci-typos
Browse files Browse the repository at this point in the history
ci: add typos as spell checker
  • Loading branch information
hatemhosny authored Dec 31, 2024
2 parents b6668ca + 0c1eea0 commit 208497b
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 4 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/CI-typos.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: CI-typos

on: [push, pull_request]

jobs:
spell-check:
name: Spell Check
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Check typos on code
uses: crate-ci/typos@master
with:
config: ./typos.toml
8 changes: 4 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -1033,7 +1033,7 @@ This release introduces [headless mode](https://livecodes.io/docs/sdk/headless).
- **sync:** do not re-download unchanged remote sync data ([1a56d48](https://github.com/live-codes/livecodes/commit/1a56d4831193cafbb4ede9d6451fc1ca4ba87c08))
- **sync:** fix sync (cache and encoding) ([feec8d5](https://github.com/live-codes/livecodes/commit/feec8d57516109f028d3e5b88a00f74e9e6a93d0))
- **templates:** fix loading starter template from unsaved project ([2f09967](https://github.com/live-codes/livecodes/commit/2f09967da223d2de9f6db8bb851edf38a305e6b6))
- **tests:** fix chai assertion messages by imorting chai from jsdelivr(+esm) ([0b9cef0](https://github.com/live-codes/livecodes/commit/0b9cef0ae1d91b81f8e513264d8d209927766b90))
- **tests:** fix chai assertion messages by importing chai from jsdelivr(+esm) ([0b9cef0](https://github.com/live-codes/livecodes/commit/0b9cef0ae1d91b81f8e513264d8d209927766b90))
- **tools:** fix firing onActivate on resizing tools pane ([6e26981](https://github.com/live-codes/livecodes/commit/6e26981bb8bcc2a540cd868c9bf6b5a98e4f2c8f))
- **UI:** disable autofocus in embeds ([b009f74](https://github.com/live-codes/livecodes/commit/b009f742d91e09018fe922c02023c98c604c8232))
- **UI:** fix focus on hidden editors ([2453121](https://github.com/live-codes/livecodes/commit/24531216309ddf9a8ff93feb57f9f6d5bea55511))
Expand Down Expand Up @@ -1364,7 +1364,7 @@ This release introduces [headless mode](https://livecodes.io/docs/sdk/headless).
- **sync:** do not re-download unchanged remote sync data ([1a56d48](https://github.com/live-codes/livecodes/commit/1a56d4831193cafbb4ede9d6451fc1ca4ba87c08))
- **sync:** fix sync (cache and encoding) ([feec8d5](https://github.com/live-codes/livecodes/commit/feec8d57516109f028d3e5b88a00f74e9e6a93d0))
- **templates:** fix loading starter template from unsaved project ([2f09967](https://github.com/live-codes/livecodes/commit/2f09967da223d2de9f6db8bb851edf38a305e6b6))
- **tests:** fix chai assertion messages by imorting chai from jsdelivr(+esm) ([0b9cef0](https://github.com/live-codes/livecodes/commit/0b9cef0ae1d91b81f8e513264d8d209927766b90))
- **tests:** fix chai assertion messages by importing chai from jsdelivr(+esm) ([0b9cef0](https://github.com/live-codes/livecodes/commit/0b9cef0ae1d91b81f8e513264d8d209927766b90))
- **tools:** fix firing onActivate on resizing tools pane ([6e26981](https://github.com/live-codes/livecodes/commit/6e26981bb8bcc2a540cd868c9bf6b5a98e4f2c8f))
- **UI:** disable autofocus in embeds ([b009f74](https://github.com/live-codes/livecodes/commit/b009f742d91e09018fe922c02023c98c604c8232))
- **UI:** fix focus on hidden editors ([2453121](https://github.com/live-codes/livecodes/commit/24531216309ddf9a8ff93feb57f9f6d5bea55511))
Expand Down Expand Up @@ -1904,7 +1904,7 @@ This release introduces [headless mode](https://livecodes.io/docs/sdk/headless).
- **sync:** do not re-download unchanged remote sync data ([1a56d48](https://github.com/live-codes/livecodes/commit/1a56d4831193cafbb4ede9d6451fc1ca4ba87c08))
- **sync:** fix sync (cache and encoding) ([feec8d5](https://github.com/live-codes/livecodes/commit/feec8d57516109f028d3e5b88a00f74e9e6a93d0))
- **templates:** fix loading starter template from unsaved project ([2f09967](https://github.com/live-codes/livecodes/commit/2f09967da223d2de9f6db8bb851edf38a305e6b6))
- **tests:** fix chai assertion messages by imorting chai from jsdelivr(+esm) ([0b9cef0](https://github.com/live-codes/livecodes/commit/0b9cef0ae1d91b81f8e513264d8d209927766b90))
- **tests:** fix chai assertion messages by importing chai from jsdelivr(+esm) ([0b9cef0](https://github.com/live-codes/livecodes/commit/0b9cef0ae1d91b81f8e513264d8d209927766b90))
- **tools:** fix firing onActivate on resizing tools pane ([6e26981](https://github.com/live-codes/livecodes/commit/6e26981bb8bcc2a540cd868c9bf6b5a98e4f2c8f))
- **UI:** disable autofocus in embeds ([b009f74](https://github.com/live-codes/livecodes/commit/b009f742d91e09018fe922c02023c98c604c8232))
- **UI:** fix focus on hidden editors ([2453121](https://github.com/live-codes/livecodes/commit/24531216309ddf9a8ff93feb57f9f6d5bea55511))
Expand Down Expand Up @@ -1998,7 +1998,7 @@ This release introduces [headless mode](https://livecodes.io/docs/sdk/headless).
- **config:** store user config ([45de26b](https://github.com/live-codes/livecodes/commit/45de26b12dd984281dded89f4ab00417c6754d0b))
- **config:** upgrade config from previous versions ([237c137](https://github.com/live-codes/livecodes/commit/237c13737398864ee8bb75108b792a47647e32ec))
- **config:** validate config before load ([e2f82bf](https://github.com/live-codes/livecodes/commit/e2f82bf6f7c818626f5cb0bff1ba8e7a8963ae1a))
- **deploy:** allow commiting source code and result as separate files ([a183ede](https://github.com/live-codes/livecodes/commit/a183edecc64b789aa447c593e5b298370b854a28))
- **deploy:** allow committing source code and result as separate files ([a183ede](https://github.com/live-codes/livecodes/commit/a183edecc64b789aa447c593e5b298370b854a28))
- **deploy:** allow deploy to github pages ([997ab39](https://github.com/live-codes/livecodes/commit/997ab398994ad61bab93c6fccb4bea74db103073))
- **editor:** add codemirror emmet support ([f4c2c0f](https://github.com/live-codes/livecodes/commit/f4c2c0ff1218fc5cb501836b2de5a8207518e002))
- **editor:** add prismjs as readonly code editor ([5c0b6c2](https://github.com/live-codes/livecodes/commit/5c0b6c2fe0acc616d61042e1aafbeefca75c5c94))
Expand Down
29 changes: 29 additions & 0 deletions typos.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Check config spec at https://github.com/crate-ci/typos/blob/master/docs/reference.md

[files]
ignore-vcs = true # Respect .gitignore
extend-exclude = [
"src/livecodes/i18n/locales/**/*.ts", # Ignore locale files
"src/livecodes/i18n/locales/**/*.lokalise.json", # Ignore locale files
"src/livecodes/services/google-fonts.ts", # Font name
"src/livecodes/templates/starter/blockly-starter.ts", # Random string id
]

[default]
extend-ignore-re = [
"\\/.+\\/", # Regex literal
"\\[[0-9a-fA-F]{7}\\]", # Git short hash
]

[default.extend-words]
styl = "styl"
edn = "edn"
darcula = "darcula"
Darcula = "Darcula"
IIF = "IIF"
xdescribe = "xdescribe"
arange = "arange"

[type.svg]
# Skip check contents for svg files
check-file = false

0 comments on commit 208497b

Please sign in to comment.