You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
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'
|
|
|
|
if [[ $? == 0 ]]; 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
|