mirror of
https://github.com/uutils/coreutils.git
synced 2025-07-07 21:45:01 +00:00
Make cspell pre-commit hook optional with skip message
This commit is contained in:
parent
7e4877fb30
commit
3c29c77ffa
1 changed files with 2 additions and 2 deletions
|
@ -37,7 +37,7 @@ repos:
|
|||
language: system
|
||||
- id: cspell
|
||||
name: Code spell checker (cspell)
|
||||
description: Run cspell to check for spelling errors.
|
||||
entry: cspell --no-must-find-files --
|
||||
description: Run cspell to check for spelling errors (if available).
|
||||
entry: bash -c 'if command -v cspell >/dev/null 2>&1; then cspell --no-must-find-files -- "$@"; else echo "cspell not found, skipping spell check"; exit 0; fi' --
|
||||
pass_filenames: true
|
||||
language: system
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue