aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLiam <byteslice@airmail.cc>2023-03-11 22:03:56 -0500
committerLiam <byteslice@airmail.cc>2023-03-11 22:08:43 -0500
commit6f95e7487c3e42a7fe8e020e50123ab96af867d0 (patch)
treee104da42ec8241e9d35548345dc2789343346bba
parent0edffb460d6ee14655043a8c009425d0bced31e7 (diff)
general: use codespell to identify spelling mistakes
-rw-r--r--.codespellrc3
-rw-r--r--.github/workflows/codespell.yml15
2 files changed, 18 insertions, 0 deletions
diff --git a/.codespellrc b/.codespellrc
new file mode 100644
index 0000000000..acef5478fc
--- /dev/null
+++ b/.codespellrc
@@ -0,0 +1,3 @@
+[codespell]
+skip = ./.git,./build,./dist,./Doxyfile,./externals,./LICENSES
+ignore-words-list = aci,allright,ba,deques,froms,hda,inout,lod,masia,nax,nd,pullrequests,pullrequest,te,transfered,unstall,uscaled,zink
diff --git a/.github/workflows/codespell.yml b/.github/workflows/codespell.yml
new file mode 100644
index 0000000000..4667b24240
--- /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: pull_request
+permissions: {}
+jobs:
+ codespell:
+ name: Check for spelling errors
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v3
+ with:
+ persist-credentials: false
+ - uses: codespell-project/actions-codespell@master