diff --git a/.github/scripts/codespell.sh b/.github/scripts/codespell.sh new file mode 100755 index 0000000000..c0d77898bd --- /dev/null +++ b/.github/scripts/codespell.sh @@ -0,0 +1,22 @@ +#!/bin/sh +# Copyright (C) Viktor Szakats +# +# SPDX-License-Identifier: curl + +set -eu + +cd "$(dirname "${0}")"/../.. + +codespell --version +# shellcheck disable=SC2046 +codespell \ + --skip '*/spellcheck.words' \ + --skip '*/typos.toml' \ + --skip '*/THANKS' \ + --skip '*/mk-ca-bundle.pl' \ + --skip '*/wcurl' \ + --skip '*/tool_hugehelp.c' \ + --skip 'packages/*' \ + --skip '*/test*' \ + --ignore-words '.github/scripts/codespell-ignore.txt' \ + $(git ls-files) diff --git a/.github/workflows/checksrc.yml b/.github/workflows/checksrc.yml index d4e641a254..583e3e4a43 100644 --- a/.github/workflows/checksrc.yml +++ b/.github/workflows/checksrc.yml @@ -69,16 +69,7 @@ jobs: cargo install typos-cli - name: 'codespell' - run: | - codespell --version - # shellcheck disable=SC2046 - codespell \ - --skip scripts/mk-ca-bundle.pl \ - --skip src/tool_hugehelp.c \ - --skip scripts/wcurl \ - --ignore-words .github/scripts/codespell-ignore.txt \ - --skip '*/test*,*/THANKS,*/spellcheck.words,packages/*,*/typos.toml' \ - $(git ls-files) + run: .github/scripts/codespell.sh - name: 'typos' run: |