From 0441b7ec5c644d0166d43a53edcbb392828d8e35 Mon Sep 17 00:00:00 2001 From: Maxwell Weru Date: Tue, 27 Feb 2024 09:09:12 +0300 Subject: [PATCH] Add codespell workflow (replaces misspell) --- .codespellrc | 4 ++++ .github/workflows/codespell.yml | 21 +++++++++++++++++++ .github/workflows/misspell.yml | 20 ------------------ ...e.AspNetCore.DataProtection.MongoDB.csproj | 2 +- .../README.md | 2 +- .../OAuthClientCredentialHandler.cs | 2 +- 6 files changed, 28 insertions(+), 23 deletions(-) create mode 100644 .codespellrc create mode 100644 .github/workflows/codespell.yml delete mode 100644 .github/workflows/misspell.yml diff --git a/.codespellrc b/.codespellrc new file mode 100644 index 00000000..e4f2357e --- /dev/null +++ b/.codespellrc @@ -0,0 +1,4 @@ +[codespell] +skip = .git,*.pdf,*.svg,*.csv,pnpm-lock.yaml,*/wwwroot +# some modules, parts of regexes, and variable names to ignore +ignore-words-list = aci diff --git a/.github/workflows/codespell.yml b/.github/workflows/codespell.yml new file mode 100644 index 00000000..df18e8f6 --- /dev/null +++ b/.github/workflows/codespell.yml @@ -0,0 +1,21 @@ +name: Codespell + +on: + push: + branches: [main] + pull_request: + branches: [main] + +permissions: + contents: read + +jobs: + codespell: + name: Check for spelling errors + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Codespell + uses: codespell-project/actions-codespell@v2 diff --git a/.github/workflows/misspell.yml b/.github/workflows/misspell.yml deleted file mode 100644 index 70a6f23b..00000000 --- a/.github/workflows/misspell.yml +++ /dev/null @@ -1,20 +0,0 @@ -name: misspell - -on: - workflow_dispatch: - schedule: - - cron: '0 0 * * *' - -jobs: - build: - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v4 - - uses: sobolevn/misspell-fixer-action@0.1.0 - - uses: peter-evans/create-pull-request@v6 - with: - token: ${{ secrets.GITHUB_TOKEN }} - commit-message: 'Fixes by misspell-fixer' - title: 'Typos fix by misspell-fixer' diff --git a/src/Tingle.AspNetCore.DataProtection.MongoDB/Tingle.AspNetCore.DataProtection.MongoDB.csproj b/src/Tingle.AspNetCore.DataProtection.MongoDB/Tingle.AspNetCore.DataProtection.MongoDB.csproj index 1b56e7a7..0e5e2ecf 100644 --- a/src/Tingle.AspNetCore.DataProtection.MongoDB/Tingle.AspNetCore.DataProtection.MongoDB.csproj +++ b/src/Tingle.AspNetCore.DataProtection.MongoDB/Tingle.AspNetCore.DataProtection.MongoDB.csproj @@ -1,7 +1,7 @@ - Support for storing data proection keys using MongoDB in AspNetCore + Support for storing data protection keys using MongoDB in AspNetCore diff --git a/src/Tingle.Extensions.Caching.MongoDB/README.md b/src/Tingle.Extensions.Caching.MongoDB/README.md index 54ed41a1..26ebc72b 100644 --- a/src/Tingle.Extensions.Caching.MongoDB/README.md +++ b/src/Tingle.Extensions.Caching.MongoDB/README.md @@ -9,7 +9,7 @@ The implementation provides two distinct options: ### Use an existing instance of a MongoClient -This option will make the provider re-use an existing `MongoClient` instance, which won't be disposed when the provider is disposed. +This option will make the provider reuse an existing `MongoClient` instance, which won't be disposed when the provider is disposed. ```c-sharp services.AddMongoCache((MongoCacheOptions cacheOptions) => diff --git a/src/Tingle.Extensions.Http.Authentication/OAuthClientCredentialHandler.cs b/src/Tingle.Extensions.Http.Authentication/OAuthClientCredentialHandler.cs index 5de661e6..5bd4575c 100644 --- a/src/Tingle.Extensions.Http.Authentication/OAuthClientCredentialHandler.cs +++ b/src/Tingle.Extensions.Http.Authentication/OAuthClientCredentialHandler.cs @@ -53,7 +53,7 @@ public OAuthClientCredentialHandler(HttpMessageHandler innerHandler, HttpClient? /// /// The duration of before expiry of the token that it should be renewed. - /// Defaults to 10 seconds; minumum 5 seconds. + /// Defaults to 10 seconds; minimum 5 seconds. /// public virtual TimeSpan RenewalThreshold { get; set; } = TimeSpan.FromSeconds(5);