Skip to content

Commit 37bbd36

Browse files
committed
Updates to do precommit
1 parent e55321a commit 37bbd36

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

scripts/check-spelling.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,17 @@ echo "Created temporary cspell config at $TEMP_CONFIG"
4242

4343
# Run cspell on the target folder
4444
npx --yes cspell --config "$TEMP_CONFIG" "$TARGET_FOLDER/**/*"
45+
SPELL_STATUS=$?
4546

4647
# Clean up
4748
rm "$TEMP_CONFIG"
4849
echo "Temporary config deleted."
50+
51+
# Report and exit with the spell check status
52+
if [ $SPELL_STATUS -ne 0 ]; then
53+
echo "❌ Spelling check failed."
54+
else
55+
echo "✅ No spelling issues found."
56+
fi
57+
58+
exit $SPELL_STATUS

scripts/markdown-lint.sh

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,12 @@ echo "Linting Markdown files in directory: $TARGET_DIR"
1414

1515
npx --yes markdownlint-cli --config ./.markdownlint.json $TARGET_DIR $FIX_FLAG
1616

17-
echo "Done."
17+
STATUS=$?
18+
19+
if [ $STATUS -ne 0 ]; then
20+
echo "❌ Markdown linting failed."
21+
else
22+
echo "✅ No markdown linting issues found."
23+
fi
24+
25+
exit $STATUS

0 commit comments

Comments
 (0)