From 0f8a2d9363ce1356deea2acc34a5ce0cfcab9934 Mon Sep 17 00:00:00 2001 From: Zhizhen He Date: Thu, 23 Mar 2023 02:42:46 +0800 Subject: [PATCH] chore: add spell checker to workflows (#4975) * chore: add spell checker to workflows * fix: update config schema * fix: revert for fennel.rs --- .github/config-schema.json | 4 ++-- .github/workflows/spell-check.yml | 10 ++++++++++ Cargo.toml | 4 ++-- install/macos_packages/readme.md | 4 ++-- install/windows/main.wxs | 6 +++--- src/configs/fennel.rs | 5 +++-- src/configure.rs | 2 +- src/modules/env_var.rs | 2 +- src/modules/fennel.rs | 2 +- src/modules/nix_shell.rs | 4 ++-- src/modules/package.rs | 2 +- src/modules/rust.rs | 2 +- src/test/mod.rs | 2 +- typos.toml | 11 +++++++++++ 14 files changed, 41 insertions(+), 19 deletions(-) create mode 100644 .github/workflows/spell-check.yml create mode 100644 typos.toml diff --git a/.github/config-schema.json b/.github/config-schema.json index cf03dce7..67988de3 100644 --- a/.github/config-schema.json +++ b/.github/config-schema.json @@ -475,7 +475,7 @@ }, "fennel": { "default": { - "detect_extentions": [ + "detect_extensions": [ "fnl" ], "detect_files": [], @@ -2955,7 +2955,7 @@ "default": true, "type": "boolean" }, - "detect_extentions": { + "detect_extensions": { "default": [ "fnl" ], diff --git a/.github/workflows/spell-check.yml b/.github/workflows/spell-check.yml new file mode 100644 index 00000000..b1838748 --- /dev/null +++ b/.github/workflows/spell-check.yml @@ -0,0 +1,10 @@ +name: Spell Check +on: [pull_request] + +jobs: + typos: + name: Spell Check with Typos + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: crate-ci/typos@v1.13.18 diff --git a/Cargo.toml b/Cargo.toml index a4b85bcc..271c2714 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -34,7 +34,7 @@ battery = ["starship-battery"] config-schema = ["schemars"] notify = ["notify-rust"] -# Enables most of the `max-performace` features of the `gix` module for better performance. +# Enables most of the `max-performance` features of the `gix` module for better performance. # This can be more difficult to build in some conditions and requires cmake. gix-max-perf = ["gix-features/zlib-ng", "gix/fast-sha1"] # Slower than `git-repository-max-perf`, but better than the default. @@ -53,7 +53,7 @@ gix = { version = "0.42.0", default-features = false, features = ["max-performan gix-features = { version = "0.28.1", optional = true } indexmap = { version = "1.9.2", features = ["serde"] } log = { version = "0.4.17", features = ["std"] } -# nofity-rust is optional (on by default) because the crate doesn't currently build for darwin with nix +# notify-rust is optional (on by default) because the crate doesn't currently build for darwin with nix # see: https://github.com/NixOS/nixpkgs/issues/160876 notify-rust = { version = "4.8.0", optional = true } nu-ansi-term = "0.47.0" diff --git a/install/macos_packages/readme.md b/install/macos_packages/readme.md index 07cfac33..5b7aafdd 100644 --- a/install/macos_packages/readme.md +++ b/install/macos_packages/readme.md @@ -204,7 +204,7 @@ there are two .plist files that can be used to specify the architecture required ## Signing the Distribution package -This is also fairly simple, and analagous to signing the binary. +This is also fairly simple, and analogous to signing the binary. ``` productsign --timestamp --sign "" @@ -212,7 +212,7 @@ productsign --timestamp --sign "" ## Notarizing the Distribution Package -Also analagous to notarizing the binary. We run +Also analogous to notarizing the binary. We run ``` xcrun notarytool submit --keychain-profile "AC_PASSWORD" --wait diff --git a/install/windows/main.wxs b/install/windows/main.wxs index 41c2280b..d07e31ed 100644 --- a/install/windows/main.wxs +++ b/install/windows/main.wxs @@ -138,7 +138,7 @@ 1. Comment out or remove the two `Publish` tags that follow the `WixVariable` tag. - 2. Uncomment the `` tag futher down + 2. Uncomment the `` tag further down 3. Replace the `Value` attribute of the `WixVariable` tag with the path to a RTF file that will be used as the EULA and displayed in the license agreement dialog. @@ -158,7 +158,7 @@