diff --git a/.codespellrc b/.codespellrc index a9981014..a1feed95 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 285767fb..731b3368 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 8c687d95..fddb641d 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 00000000..8529c28d --- /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", +]