From edd40d09a94128caf419664f3d4ec19f428d43bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Viktor=20Sz=C3=A9pe?= Date: Fri, 15 Dec 2023 18:09:48 +0100 Subject: [PATCH 1/2] Create spelling workflow --- .github/workflows/spelling.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/spelling.yml diff --git a/.github/workflows/spelling.yml b/.github/workflows/spelling.yml new file mode 100644 index 00000000..b0990363 --- /dev/null +++ b/.github/workflows/spelling.yml @@ -0,0 +1,29 @@ +# yaml-language-server: $schema=https://json.schemastore.org/github-workflow + +name: "Spelling" + +on: + pull_request: null + push: + branches: + - "master" + +permissions: + contents: "read" + +concurrency: + group: "${{ github.workflow }}-${{ github.ref }}" + cancel-in-progress: true + +jobs: + typos_check: + name: "文A Typos check" + runs-on: "ubuntu-22.04" + timeout-minutes: 1 + steps: + - + name: "Checkout repository" + uses: "actions/checkout@v3" + - + name: "Search for misspellings" + uses: "crate-ci/typos@master" From 5b3bd6a8609aedac9689880412c6598cf85f2fd2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Viktor=20Sz=C3=A9pe?= Date: Fri, 15 Dec 2023 18:12:56 +0100 Subject: [PATCH 2/2] Create .typos.toml --- .typos.toml | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 .typos.toml diff --git a/.typos.toml b/.typos.toml new file mode 100644 index 00000000..c2993e02 --- /dev/null +++ b/.typos.toml @@ -0,0 +1,11 @@ +[files] +extend-exclude = [ + ".git/", + "src/Support/Countries.php", +] +ignore-hidden = false + +[default.extend-words] +"encrypter" = "encrypter" +"invokable" = "invokable" +"responsable" = "responsable"