You've already forked comprehensive-rust
mirror of
https://github.com/google/comprehensive-rust.git
synced 2025-07-14 10:04:19 +02:00
Add typos
to CI (#1158)
Hi all! This CL fixes #1093: * Avoids including current false-positives in the checking of typos * Excludes localization-related files, as `typos` works with English words * Fixes existing typos caught in the repo Tested this in CI with a typo and it showed up in the list of actions! --------- Co-authored-by: Martin Geisler <martin@geisler.net>
This commit is contained in:
16
.github/typos.toml
vendored
Normal file
16
.github/typos.toml
vendored
Normal file
@ -0,0 +1,16 @@
|
||||
[default.extend-identifiers]
|
||||
# False positives.
|
||||
mis = "mis"
|
||||
MIS = "MIS"
|
||||
inout = "inout"
|
||||
BARs = "BARs"
|
||||
|
||||
[type.po]
|
||||
# Localized content should not be checked for typos. English
|
||||
# in these files should be validated manually.
|
||||
extend-glob = ["*.po"]
|
||||
check-file = false
|
||||
|
||||
[files]
|
||||
# Typos in third party packages should be fixed upstream.
|
||||
extend-exclude = ["third_party/*"]
|
5
.github/workflows/build.yml
vendored
5
.github/workflows/build.yml
vendored
@ -24,6 +24,11 @@ jobs:
|
||||
- name: Check formatting
|
||||
uses: dprint/check@v2.2
|
||||
|
||||
- name: Check for typos
|
||||
uses: crate-ci/typos@v1.16.9
|
||||
with:
|
||||
config: ./.github/typos.toml
|
||||
|
||||
cargo:
|
||||
strategy:
|
||||
matrix:
|
||||
|
Reference in New Issue
Block a user