Skip to content

Enforce consistent dictionary sorting #276

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 19, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 0 additions & 15 deletions scripts/aspell-pws
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,6 @@ kexec
lchown
ld
leetcode
LeetCode
lf
lhs
lib
Expand All @@ -181,12 +180,10 @@ lld
lldb
llu
llx
llX
longjmp
lseek
lu
lx
lX
macOS
madvise
malloc
Expand Down Expand Up @@ -230,7 +227,6 @@ pEo
perf
pEs
pf
pF
pg
pGg
pGp
Expand All @@ -239,25 +235,16 @@ phC
phD
phN
piSb
pISb
piSc
pISc
piSf
pISf
piSh
pISh
piSl
pISl
piSn
pISn
piSpc
pISpc
pK
pm
pM
pMF
pmR
pMR
pNF
posix
pr
Expand All @@ -270,11 +257,9 @@ preprocessor
printf
proc
ps
pS
pSR
ptrace
pUl
pUL
putc
putchar
putenv
Expand Down
4 changes: 2 additions & 2 deletions scripts/pre-commit.hook
Original file line number Diff line number Diff line change
Expand Up @@ -223,11 +223,11 @@ if [ "${#SHELL_FILES[@]}" -gt 0 ]; then
fi

ASPELL_DICT_FILE='scripts/aspell-pws'
if ! tail -n +2 $ASPELL_DICT_FILE | sort -cdu; then
if ! LC_ALL=C tail -n +2 $ASPELL_DICT_FILE | sort -f -cdu; then
throw '%s\n%s\n%s' \
'Aspell dictionary is unsorted or contains duplicated entries.' \
'Make sure that by using:' \
" tail -n +2 $ASPELL_DICT_FILE | sort -du"
" tail -n +2 $ASPELL_DICT_FILE | sort -f -du"
fi

# Show insertion and deletion counts.
Expand Down