From c7cf9b25dfc6ec4fbbba8db7adfd7eb54be105fa Mon Sep 17 00:00:00 2001 From: Florian Simmer Date: Sat, 25 Dec 2021 21:42:37 +0100 Subject: [PATCH] Github: Create codespell workflow and codespellignore --- .github/codespellignore | 90 +++++++++++++++++++++++++++++++++ .github/workflows/codespell.yml | 31 ++++++++++++ 2 files changed, 121 insertions(+) create mode 100644 .github/codespellignore create mode 100644 .github/workflows/codespell.yml diff --git a/.github/codespellignore b/.github/codespellignore new file mode 100644 index 0000000000..54bd1fa58a --- /dev/null +++ b/.github/codespellignore @@ -0,0 +1,90 @@ +aci +ake +aline +alle +alledges +alocation +als +ang +anid +apoints +ba +beginn +behaviour +bloaded +bottome +byteorder +calculater +cancelled +cancelling +cas +cascade +centimetre +childrens +childs +colour +colours +commen +connexion +currenty +dof +doubleclick +dum +eiter +elemente +ende +feld +finde +findf +freez +hist +iff +indicies +initialisation +initialise +initialised +initialises +initialisiert +inout +ist +kilometre +lod +mantatory +methode +metres +millimetre +modell +nd +noe +normale +normaly +nto +numer +oder +ontop +orgin +orginx +orginy +ot +pard +parm +parms +pres +programm +que +recurrance +rougly +seperator +serie +sinc +strack +substraction +te +thist +thru +tread +uint +unter +vertexes +wallthickness +whitespaces \ No newline at end of file diff --git a/.github/workflows/codespell.yml b/.github/workflows/codespell.yml new file mode 100644 index 0000000000..068a2a6221 --- /dev/null +++ b/.github/workflows/codespell.yml @@ -0,0 +1,31 @@ +# 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: + +jobs: + codespell: + name: Check for spelling errors + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + + - name: Get changed files + id: changed-files + uses: tj-actions/changed-files@v12.2 + + - name: List all changed files + run: | + for file in ${{ steps.changed-files.outputs.all_changed_files }}; do + echo "$file was changed" + done + + - uses: codespell-project/actions-codespell@master + with: + check_filenames: true + ignore_words_file: .github/codespellignore + skip: ./.git,*.po,*.ts,./ChangeLog.txt,./src/3rdParty,./src/Mod/Assembly/App/opendcm,./src/CXX,./src/zipios++,./src/Base/swig*,./src/Mod/Robot/App/kdl_cp,./src/Mod/Import/App/SCL,./src/WindowsInstaller,./src/Doc/FreeCAD.uml,./build/ + path: ${{ steps.changed-files.outputs.all_changed_files }} \ No newline at end of file