Skip to content

Commit

Permalink
Add typo check
Browse files Browse the repository at this point in the history
  • Loading branch information
mowangdk committed Feb 5, 2025
1 parent f80a063 commit c9444fa
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ bin/helm: | bin
bin/syft: | bin
curl -L https://github.com/anchore/syft/releases/download/v$(SYFT_VERSION)/syft_$(SYFT_VERSION)_$(OS)_$(ARCH).tar.gz | tar -xz -C bin syft

bin/typos: | bin
curl -L https://github.com/crate-ci/typos/releases/download/v1.29.5/typos-v1.29.5-x86_64-unknown-linux-musl.tar.gz | tar -xz -C bin

.PHONY: fmt
fmt:
./hack/check-format.sh
Expand Down Expand Up @@ -66,6 +69,11 @@ check-helm-kind:
./hack/check-helm.sh
kind delete cluster

.PHONY: check-code-typos
check-code-typos: bin/typos
check-code-typos:
./hack/check-typos.sh

.PHONY: build
build:
./build/build-all-multi.sh
Expand Down
10 changes: 10 additions & 0 deletions hack/check-typos.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash

set -o errexit
set -o nounset
set -o pipefail

echo "Checking typos"

typos ./ --format json
echo "No fmt issue found"

0 comments on commit c9444fa

Please sign in to comment.