2018-07-24 00:06:04 +02:00
|
|
|
#!/usr/bin/env bash
|
2018-01-22 10:49:30 +01:00
|
|
|
|
2022-02-23 19:37:54 +01: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' | grep -vE "highlighting"; 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 06:15:35 +02:00
|
|
|
|
2021-06-21 12:02:31 +02:00
|
|
|
if git --no-pager grep -nHiEP '(?<!en)ctlv' -- . ':!tools/check-spelling.sh'; then
|
2018-10-22 06:15:35 +02:00
|
|
|
echo "It's check lock time verify, not check time lock verify!" >&2
|
|
|
|
exit 1
|
|
|
|
fi
|