mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-27 11:07:44 +00:00
Merge pull request #8138 from sylvestre/cspell-precommit
Make cspell pre-commit hook optional with skip message
This commit is contained in:
commit
de68c27f31
1 changed files with 2 additions and 2 deletions
|
@ -37,7 +37,7 @@ repos:
|
||||||
language: system
|
language: system
|
||||||
- id: cspell
|
- id: cspell
|
||||||
name: Code spell checker (cspell)
|
name: Code spell checker (cspell)
|
||||||
description: Run cspell to check for spelling errors.
|
description: Run cspell to check for spelling errors (if available).
|
||||||
entry: cspell --no-must-find-files --
|
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
|
pass_filenames: true
|
||||||
language: system
|
language: system
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue