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" 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"