Files
palladum-lightning/tools/check-spelling.sh
Rusty Russell 92a6961937 tools: I cannot spell recurrEnce.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2025-10-01 15:31:30 +09:30

18 lines
829 B
Bash
Executable File

#!/usr/bin/env bash
if git --no-pager grep -nHiE 'l[ightn]{6}g|l[ightn]{8}g|ilghtning|lgihtning|lihgtning|ligthning|lighnting|lightinng|lightnnig|lightnign' -- . ':!tools/check-spelling.sh' ':!tests/data/routing_gossip_store' | grep -viE "highlighting|LightningGrpc"; then
echo "Identified a likely misspelling of the word \"lightning\" (see above). Please fix."
echo "Is this warning incorrect? Please teach tools/check-spelling.sh about the exciting new word."
exit 1
fi
if git --no-pager grep -nHiEP '(?<!en|htl)ctlv' -- . ':!tools/check-spelling.sh' ':!**/package-lock.json'; then
echo "It's check lock time verify, not check time lock verify!" >&2
exit 1
fi
if git --no-pager grep -nHiEP 'recurrance' -- . ':!tools/check-spelling.sh'; then
echo "It's recurrEnce not recurrAnce!" >&2
exit 1
fi