From 078bd8d76828454aecf346966b1e442d72a62a04 Mon Sep 17 00:00:00 2001 From: bmaltais Date: Wed, 1 Mar 2023 19:14:48 -0500 Subject: [PATCH] Add typos checker --- .github/workflows/typos.yaml | 21 +++++++++++++++++++++ _typos.toml | 15 +++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 .github/workflows/typos.yaml create mode 100644 _typos.toml diff --git a/.github/workflows/typos.yaml b/.github/workflows/typos.yaml new file mode 100644 index 0000000..a7c2a8f --- /dev/null +++ b/.github/workflows/typos.yaml @@ -0,0 +1,21 @@ +--- +# yamllint disable rule:line-length +name: Typos + +on: # yamllint disable-line rule:truthy + push: + pull_request: + types: + - opened + - synchronize + - reopened + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + + - name: typos-action + uses: crate-ci/typos@v1.13.10 \ No newline at end of file diff --git a/_typos.toml b/_typos.toml new file mode 100644 index 0000000..4902a59 --- /dev/null +++ b/_typos.toml @@ -0,0 +1,15 @@ +# Files for typos +# Instruction: https://github.com/marketplace/actions/typos-action#getting-started + +[default.extend-identifiers] + +[default.extend-words] +NIN="NIN" +parms="parms" +nin="nin" +extention="extention" # Intentionally left +nd="nd" + + +[files] +extend-exclude = ["_typos.toml"] \ No newline at end of file