From 1539ce9c5de4cecdf4728b5ebe13babdc06791f0 Mon Sep 17 00:00:00 2001 From: Peter Newman Date: Sun, 20 Jun 2021 02:06:22 +0100 Subject: [PATCH 1/2] Add a codespell action --- .github/workflows/codespell.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 .github/workflows/codespell.yml diff --git a/.github/workflows/codespell.yml b/.github/workflows/codespell.yml new file mode 100644 index 00000000000..f39b30505a8 --- /dev/null +++ b/.github/workflows/codespell.yml @@ -0,0 +1,15 @@ +# GitHub Action to automate the identification of common misspellings in text files. +# https://github.com/codespell-project/actions-codespell +# https://github.com/codespell-project/codespell +name: codespell +on: [push, pull_request] +jobs: + codespell: + name: Check for spelling errors + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: codespell-project/actions-codespell@master + with: + check_filenames: true + skip: ./.git From 7ce0c1628af16c71ceb389a7ca3c5d2208a7e145 Mon Sep 17 00:00:00 2001 From: Peter Newman Date: Sun, 20 Jun 2021 02:37:26 +0100 Subject: [PATCH 2/2] Add more skips and ignore rouge --- .github/workflows/codespell.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/codespell.yml b/.github/workflows/codespell.yml index f39b30505a8..9e8547c8263 100644 --- a/.github/workflows/codespell.yml +++ b/.github/workflows/codespell.yml @@ -12,4 +12,6 @@ jobs: - uses: codespell-project/actions-codespell@master with: check_filenames: true - skip: ./.git + check_hidden: true + skip: ./.git,./Gemfile.lock,./assets/javascripts/prism.js,./slate/source/javascripts/jquery.tocify.js + ignore_words_list: rouge