2018-07-23 15:06:04 -07:00
|
|
|
#!/usr/bin/env bash
|
2018-01-22 10:49:30 +01:00
|
|
|
|
2025-07-31 17:09:37 +02:00
|
|
|
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
|
2018-01-22 10:49:30 +01:00
|
|
|
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
|
2018-10-22 14:45:35 +10:30
|
|
|
|
2025-07-31 17:14:51 +02:00
|
|
|
if git --no-pager grep -nHiEP '(?<!en|htl)ctlv' -- . ':!tools/check-spelling.sh' ':!**/package-lock.json'; then
|
2018-10-22 14:45:35 +10:30
|
|
|
echo "It's check lock time verify, not check time lock verify!" >&2
|
|
|
|
|
exit 1
|
|
|
|
|
fi
|
2025-09-29 13:17:44 +09:30
|
|
|
|
|
|
|
|
if git --no-pager grep -nHiEP 'recurrance' -- . ':!tools/check-spelling.sh'; then
|
|
|
|
|
echo "It's recurrEnce not recurrAnce!" >&2
|
|
|
|
|
exit 1
|
|
|
|
|
fi
|