From 7f52abd2c384cfc4372256a9e2df1ad5206a445e Mon Sep 17 00:00:00 2001 From: Peter Kokot Date: Wed, 29 Oct 2025 19:50:40 +0100 Subject: [PATCH] Add typos-cli to check spelling issues --- .codespellrc | 1 + .editorconfig | 2 +- .github/workflows/check.yaml | 5 +++++ .typos.toml | 29 +++++++++++++++++++++++++++++ 4 files changed, 36 insertions(+), 1 deletion(-) create mode 100644 .typos.toml diff --git a/.codespellrc b/.codespellrc index a99810145..a1feed950 100644 --- a/.codespellrc +++ b/.codespellrc @@ -7,6 +7,7 @@ check-filenames = check-hidden = ignore-words-list = deafults, + gost, empress, master, musl, diff --git a/.editorconfig b/.editorconfig index 285767fbb..731b33686 100644 --- a/.editorconfig +++ b/.editorconfig @@ -14,7 +14,7 @@ charset = utf-8 [*.{c,h}] indent_style = tab -[*.{html,json,md,sh,yaml,yml}] +[*.{html,json,md,sh,toml,yaml,yml}] indent_size = 2 [Makefile] diff --git a/.github/workflows/check.yaml b/.github/workflows/check.yaml index 8c687d955..fddb641d1 100644 --- a/.github/workflows/check.yaml +++ b/.github/workflows/check.yaml @@ -30,6 +30,7 @@ jobs: - name: Install checking tools run: | pipx install codespell + cargo install typos-cli --locked curl -OL https://github.com/petk/normalizator/releases/latest/download/normalizator.phar chmod +x normalizator.phar mv normalizator.phar /usr/local/bin/normalizator @@ -41,6 +42,10 @@ jobs: if: ${{ always() }} run: codespell + - name: Run typos + if: ${{ always() }} + run: typos + - name: Run normalizator.phar if: ${{ always() }} run: normalizator check --not php-src --not .git . diff --git a/.typos.toml b/.typos.toml new file mode 100644 index 000000000..8529c28d3 --- /dev/null +++ b/.typos.toml @@ -0,0 +1,29 @@ +# The typos-cli configuration. +# https://github.com/crate-ci/typos + +[files] +ignore-hidden = false +ignore-dot = false +extend-exclude = [ + ".git/", + "patches/", +] + +[default] +binary = false +check-filename = true +check-file = true +unicode=true +locale = "en-us" +extend-ignore-re = [] +extend-ignore-identifiers-re = [ + "ANC_CREDS_CMSGCRED", + "ANC_CREDS_UCRED", + "PDO_DBLIB_FLAVOUR", + "secur32", +] +extend-ignore-words-re = [ + "deafults", + "gost", + "shs", +]