practicalswift
7 years ago
committed by
Rusty Russell
2 changed files with 12 additions and 1 deletions
@ -0,0 +1,8 @@ |
|||
#!/bin/bash |
|||
|
|||
git grep -iE '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 |
Loading…
Reference in new issue