-
-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #641 from zyf722/ci-typos
ci: add typos as spell checker
- Loading branch information
Showing
3 changed files
with
49 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |