From 8dc0a01e7b3d47bf6c2e70e4827eacc7b9119d2b Mon Sep 17 00:00:00 2001 From: ydah Date: Wed, 12 Jun 2024 10:38:03 +0900 Subject: [PATCH 1/3] Add spelling checks to the workflow in GitHub Actions We would like to leave it to codespell to verify the spelling of our code. I propose to use codespell-project/actions-codespell, now v1.0. https://github.com/codespell-project/actions-codespell --- .codespellignore | 0 .github/workflows/codespell.yml | 18 ++++++++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 .codespellignore create mode 100644 .github/workflows/codespell.yml diff --git a/.codespellignore b/.codespellignore new file mode 100644 index 0000000..e69de29 diff --git a/.github/workflows/codespell.yml b/.github/workflows/codespell.yml new file mode 100644 index 0000000..3a7b823 --- /dev/null +++ b/.github/workflows/codespell.yml @@ -0,0 +1,18 @@ +name: CodeSpell +on: + - pull_request +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} + cancel-in-progress: true +jobs: + codespell: + name: CodeSpell + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: CodeSpell + uses: codespell-project/actions-codespell@master + with: + check_filenames: true + check_hidden: true + ignore_words_file: .codespellignore From 883ff8b3630c6ec25ab5d2cc7dbf6fb34c752fc8 Mon Sep 17 00:00:00 2001 From: ydah Date: Wed, 12 Jun 2024 10:38:06 +0900 Subject: [PATCH 2/3] followings ==> following --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 2ce1adf..accfc26 100644 --- a/README.md +++ b/README.md @@ -42,7 +42,7 @@ gem 'rubocop-inflector' ## Usage You need to tell RuboCop to load the Inflector extension and your custom ActiveSupport::Inflector rule. -Custom rule file would be the followings. If you are using Rails, you can find it under `config` directory. +Custom rule file would be the following. If you are using Rails, you can find it under `config` directory. ### Custom ActiveSupport::Inflector rule From 0752a90e3c6f26c338bfb7ac2f886a868b251a3d Mon Sep 17 00:00:00 2001 From: Yudai Takada Date: Tue, 24 Sep 2024 23:12:13 +0900 Subject: [PATCH 3/3] Use v2 Co-authored-by: Takumasa Ochi <4468155+aeroastro@users.noreply.github.com> --- .github/workflows/codespell.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/codespell.yml b/.github/workflows/codespell.yml index 3a7b823..6ca5377 100644 --- a/.github/workflows/codespell.yml +++ b/.github/workflows/codespell.yml @@ -11,7 +11,7 @@ jobs: steps: - uses: actions/checkout@v4 - name: CodeSpell - uses: codespell-project/actions-codespell@master + uses: codespell-project/actions-codespell@v2 with: check_filenames: true check_hidden: true