From 481755955bfc212aeb7c2fa3cf90a53cfa411fd8 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Thu, 23 Nov 2023 12:08:33 +0100 Subject: [PATCH] CI: codespell The list of words to ignore is in the file .github/scripts/codespell-ignore.txt Closes #12390 --- .github/scripts/codespell-ignore.txt | 15 ++++++++++++ .github/workflows/codespell.yml | 36 ++++++++++++++++++++++++++++ 2 files changed, 51 insertions(+) create mode 100644 .github/scripts/codespell-ignore.txt create mode 100644 .github/workflows/codespell.yml diff --git a/.github/scripts/codespell-ignore.txt b/.github/scripts/codespell-ignore.txt new file mode 100644 index 0000000000..3832cec4d7 --- /dev/null +++ b/.github/scripts/codespell-ignore.txt @@ -0,0 +1,15 @@ +# Copyright (C) Daniel Stenberg, , et al. +# +# SPDX-License-Identifier: curl +clen +te +wont +statics +nome +wast +numer +anull +inout +msdos +ba +fo diff --git a/.github/workflows/codespell.yml b/.github/workflows/codespell.yml new file mode 100644 index 0000000000..405d63915a --- /dev/null +++ b/.github/workflows/codespell.yml @@ -0,0 +1,36 @@ +# Copyright (C) Daniel Stenberg, , et al. +# +# SPDX-License-Identifier: curl + +name: Codespell + +on: + push: + branches: + - master + - '*/ci' + paths: + - 'lib/**' + - 'src/**' + - 'include/**' + pull_request: + branches: + - master + - 'lib/**' + - 'src/**' + - 'include/**' + +jobs: + codespell: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: install + run: | + sudo apt-get update + sudo apt-get install codespell + + - name: spellcheck + run: codespell --skip src/tool_hugehelp.c -I .github/scripts/codespell-ignore.txt include src lib