We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1527f93 commit 4d908d8Copy full SHA for 4d908d8
scripts/pre-commit.hook
@@ -222,6 +222,14 @@ if [ "${#SHELL_FILES[@]}" -gt 0 ]; then
222
done
223
fi
224
225
+ASPELL_DICT_FILE='scripts/aspell-pws'
226
+if ! tail -n +2 $ASPELL_DICT_FILE | sort -cdu; then
227
+ throw '%s\n%s\n%s' \
228
+ 'Aspell dictionary is unsorted or contains duplicated entries.' \
229
+ 'Make sure that by using:' \
230
+ " tail -n +2 $ASPELL_DICT_FILE | sort -du"
231
+fi
232
+
233
# Show insertion and deletion counts.
234
if [ "${#FILES[@]}" -gt 0 ]; then
235
echo "Following files were changed:"
0 commit comments