From 9a7a9c16bcf1788cfd06fc9c98751a1cd0777947 Mon Sep 17 00:00:00 2001 From: Adam Perkowski Date: Sun, 22 Dec 2024 15:51:55 +0100 Subject: [PATCH] chore(ci): add `typos` --- .github/workflows/jule.yml | 1 + .github/workflows/typos.yml | 17 +++++++++++++++++ _typos.toml | 2 ++ cliq/cliq.jule | 4 ++-- 4 files changed, 22 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/typos.yml create mode 100644 _typos.toml diff --git a/.github/workflows/jule.yml b/.github/workflows/jule.yml index a7abd48..3a2b73f 100644 --- a/.github/workflows/jule.yml +++ b/.github/workflows/jule.yml @@ -4,6 +4,7 @@ on: paths: - "examples/**/*" - "cliq/**/*" + branches: ["main"] pull_request: workflow_dispatch: diff --git a/.github/workflows/typos.yml b/.github/workflows/typos.yml new file mode 100644 index 0000000..3d8fd05 --- /dev/null +++ b/.github/workflows/typos.yml @@ -0,0 +1,17 @@ +name: Check for typos + +on: + push: + branches: ["main"] + pull_request: + workflow_dispatch: + +jobs: + check-typos: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - name: Run spellcheck + uses: crate-ci/typos@v1.25.0 diff --git a/_typos.toml b/_typos.toml new file mode 100644 index 0000000..bf27f28 --- /dev/null +++ b/_typos.toml @@ -0,0 +1,2 @@ +[files] +extend-exclude = ["CHANGELOG.md"] diff --git a/cliq/cliq.jule b/cliq/cliq.jule index f3a6215..58af73e 100644 --- a/cliq/cliq.jule +++ b/cliq/cliq.jule @@ -40,12 +40,12 @@ impl Cliq { self.Res = result if self.Res["help"] { - self.DsiplayHelp() + self.DisplayHelp() os::Exit(0) } } - fn DsiplayHelp(self) { + fn DisplayHelp(self) { mut max_width := 0 for _, a in self.argmap {