From e56cbaf1d3b62d5338b79e41232ecf492bfb499b Mon Sep 17 00:00:00 2001 From: Peter Newman Date: Tue, 11 Aug 2020 00:58:25 +0100 Subject: [PATCH] Add a Codespell action (#7752) * Fix a typo * Add codespell action * Fix lots of spelling errors * Fix a few more spelling mistakes * Add an ignore words list * s/parsable/parseable/ * Don't touch the third party files * Cloneable is the preferred C# term * Copyable is the preferred C++ term * Exclude some more words and folders * Revert "s/parsable/parseable/" This reverts commit 534ecf7675222f39d98928c7e1489b56b004b774. * Revert unparseable->unparsable corrections * Skip more locations and add some ignore words that haven't been merged yet --- .github/workflows/codespell.yml | 16 ++++++++++++++++ 1 file changed, 16 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 000000000..d853702a1 --- /dev/null +++ b/.github/workflows/codespell.yml @@ -0,0 +1,16 @@ +# 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,./conformance/third_party,*.snk,*.pb,./src/google/protobuf/testdata,./objectivec/Tests,./python/compatibility_tests/v2.5.0/tests/google/protobuf/internal + ignore_words_list: "alow,alse,ba,cleare,copyable,cloneable,dedup,dur,errorprone,fo,fundementals,hel,importd,inout,leapyear,nd,ois,ons,parseable,process',te,testof,ue,unparseable,wasn,wee,gae,keyserver,objext,od"