Skip to content

Commit

Permalink
feat: add spell checking executable
Browse files Browse the repository at this point in the history
  • Loading branch information
turo-mwong committed Jan 13, 2024
1 parent 11f450f commit 796cc35
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
6 changes: 3 additions & 3 deletions .pre-commit-hooks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@
######################
# Spell checking related hooks
- id: cspell
name: "(TODO add name) Check spelling"
description: "(TODO add description) Check spelling"
name: "Check for spelling errors with `cspell-cli`"
description: "Find and report spelling errors in staged files"
language: script
entry: hooks/cspell/cspell.sh

6 changes: 1 addition & 5 deletions hooks/cspell/cspell.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
#!/bin/bash
set -e

has_error=0

echo "helloworld"

exit $has_error
git diff --name-only | npx cspell --no-summary --no-progress --no-must-find-files --file-list stdin

0 comments on commit 796cc35

Please sign in to comment.