Skip to content

Commit

Permalink
ci(gh-actions): check typos
Browse files Browse the repository at this point in the history
  • Loading branch information
moreal committed Jul 25, 2023
1 parent c79127a commit 6b8d6bb
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,9 @@ jobs:
for file in "${FILES[@]}"; do
ajv validate -s appsettings-schema.json -d "$file"
done
typos:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Check typos
uses: crate-ci/[email protected]
18 changes: 18 additions & 0 deletions _typos.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
[default]
extend-ignore-re = [
"\\\"([a-zA-Z0-9][a-zA-Z0-9])+\\\"", # for hexadecimal string values.
"2nd"
]

[default.extend-identifiers]
fo = "fo" # FungibleOrder

[default.extend-words]
ba = "ba" # byte array
oce = "oce" # OperationCanceledException
Equipments = "Equipments" # FIXME: Equipment is noncount word but our team doesn't have the policy about it.

[files]
extend-exclude = [
"Lib9c/*"
]

0 comments on commit 6b8d6bb

Please sign in to comment.