From 07582bbbfd3864e7705251a9c787343140f608c6 Mon Sep 17 00:00:00 2001 From: realaravinth Date: Fri, 8 Apr 2022 17:54:33 +0530 Subject: [PATCH] feat: configure spell check --- Makefile | 1 + scripts/spellcheck.sh | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index c57bf54..790c01e 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,5 @@ default: ## Build the website + ./scripts/spellcheck.sh --check ./scripts/zola.sh build clean: ## Clean build assets diff --git a/scripts/spellcheck.sh b/scripts/spellcheck.sh index 6be8a7a..98a25b1 100755 --- a/scripts/spellcheck.sh +++ b/scripts/spellcheck.sh @@ -49,12 +49,14 @@ download() { cd $TMP_DIR tar -xf $MISSPELL_TARBALL; cd $PROJECT_ROOT + else + echo "[*] Found misspell" fi } spell_check_codespell() { _check(){ - codespell $FLAGS --ignore-words-list=$1 $PROJECT_ROOT/$2 || true + codespell $FLAGS $PROJECT_ROOT/$1 #|| true } _check README.md _check contents @@ -65,7 +67,7 @@ spell_check_misspell() { download _check(){ - $MISSPELL $FLAGS -i $1 $PROJECT_ROOT/$2 + $MISSPELL $FLAGS $PROJECT_ROOT/$1 } _check contents