Jelajahi Sumber

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
Peter Newman 5 tahun lalu
induk
melakukan
e56cbaf1d3
1 mengubah file dengan 16 tambahan dan 0 penghapusan
  1. 16 0
      .github/workflows/codespell.yml

+ 16 - 0
.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"