From 1b442c9afbb427b2abda26ca9df8981360723ded Mon Sep 17 00:00:00 2001 From: Sokolovskii Ivan Date: Sat, 22 Nov 2025 18:40:10 +0300 Subject: [PATCH] fix(typos): correct typos in README and add config for typos cli --- lefthook.yml => .lefthook.yml | 0 .typos.toml | 26 ++++++++++++++++++++++++++ Makefile | 2 +- README.md | 2 +- cmd/commitizen.go | 2 +- 5 files changed, 29 insertions(+), 3 deletions(-) rename lefthook.yml => .lefthook.yml (100%) create mode 100644 .typos.toml diff --git a/lefthook.yml b/.lefthook.yml similarity index 100% rename from lefthook.yml rename to .lefthook.yml diff --git a/.typos.toml b/.typos.toml new file mode 100644 index 0000000..4b454b2 --- /dev/null +++ b/.typos.toml @@ -0,0 +1,26 @@ +[files] +extend-exclude = [ + "go.mod", + "go.sum" +] +ignore-hidden = true +ignore-files = true +ignore-dot = true +ignore-vcs = true +ignore-global = true +ignore-parent = true + +[default] +binary = false +check-filename = true +check-file = true +unicode = true +locale = "en" +extend-ignore-re = [] +extend-ignore-identifiers-re = [] + +[default.extend-words] +# = "" + +[default.extend-identifiers] +# = "" diff --git a/Makefile b/Makefile index d2468d7..1f24cad 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -OMMIT_HASH = $(shell git rev-parse HEAD) +COMMIT_HASH = $(shell git rev-parse HEAD) .PHONY: build build: diff --git a/README.md b/README.md index 6eaa08e..06aebb1 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ Commitizen ---------- -CLI promt tool for creation of [Conventional Commits](https://www.conventionalcommits.org). No more pain with commits rejected by validation tools or digging through [CONTRIBUTING.md](CONTRIBUTING.md) to find preffered commit format. +CLI prompt tool for creation of [Conventional Commits](https://www.conventionalcommits.org). No more pain with commits rejected by validation tools or digging through [CONTRIBUTING.md](CONTRIBUTING.md) to find preferred commit format. Based on wonderful work of [Commitizen](https://github.com/commitizen) with their [cz-cli](https://github.com/commitizen/cz-cli) which works like a charm in Node.js based projects. diff --git a/cmd/commitizen.go b/cmd/commitizen.go index d4ebcaa..695d9e1 100644 --- a/cmd/commitizen.go +++ b/cmd/commitizen.go @@ -9,7 +9,7 @@ import ( func Lefthook() *cli.Command { return &cli.Command{ Name: "commitizen", - Usage: "Conventional Commits promt generator", + Usage: "Conventional Commits prompt generator", Version: ver.Version(), Commands: commands, EnableShellCompletion: true,