ci: Add typos check (#697)

This commit is contained in:
Bruce Mitchener
2024-08-12 08:28:59 +07:00
committed by GitHub
parent e513e990dc
commit 9d6b64153d
2 changed files with 31 additions and 0 deletions
+8
View File
@@ -46,12 +46,20 @@ jobs:
run: cargo build --verbose run: cargo build --verbose
- name: Run tests - name: Run tests
run: cargo test --verbose run: cargo test --verbose
typos:
# If this fails, consider changing your text or adding something to .typos.toml
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: check typos
uses: crate-ci/typos@v1.23.6
build_result: build_result:
name: Result name: Result
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: needs:
- "build" - "build"
- "semver" - "semver"
- "typos"
steps: steps:
- name: Mark the job as successful - name: Mark the job as successful
run: exit 0 run: exit 0
+23
View File
@@ -0,0 +1,23 @@
# See the configuration reference at
# https://github.com/crate-ci/typos/blob/master/docs/reference.md
# Corrections take the form of a key/value pair. The key is the incorrect word
# and the value is the correct word. If the key and value are the same, the
# word is treated as always correct. If the value is an empty string, the word
# is treated as always incorrect.
# Match Identifier - Case Sensitive
[default.extend-identifiers]
setShowsApplicatinBadge_ = "setShowsApplicatinBadge_"
showsApplicatinBadge = "showsApplicatinBadge"
# Match Inside a Word - Case Insensitive
[default.extend-words]
[files]
# Include .github, .cargo, etc.
ignore-hidden = false
# /.git isn't in .gitignore, because git never tracks it.
# Typos doesn't know that, though.
extend-exclude = ["/.git"]