Skip to content
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

ci: make sure dictionary is sorted and contains no duplicates #6316

Merged
merged 4 commits into from
Jan 31, 2024
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
13 changes: 13 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1011,6 +1011,19 @@ jobs:
with:
tool: cargo-spellcheck
- uses: actions/checkout@v4
- name: Make sure dictionary words are sorted and unique
run: |
# `sed` removes the first line (number of words) and
# the last line (new line).
#
# `sort` makes sure everything in between is sorted
# and contains no duplicates.
#
# Since `sort` is sensitive to locale, we set it
# using LC_ALL to en_US.UTF8 to be consistent in different
# environments.

sed '1d; $d' spellcheck.dic | LC_ALL=en_US.UTF8 sort -uc
- name: Run cargo-spellcheck
run: cargo spellcheck --code 1

40 changes: 20 additions & 20 deletions spellcheck.dic
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
279
&
+
<
=
>
\
~
~4
~12
±1m
±1ms
&
+
0o777
0s
0xA
0xD
100ms
10ms
~12
±1m
±1ms
1ms
1s
250ms
2x
~4
443
450ms
50ms
8MB
<
=
>
adaptor
adaptors
Adaptors
Expand Down Expand Up @@ -56,14 +56,14 @@ codec
codecs
combinator
combinators
Config
config
Config
connectionless
cpu
cpus
Customizable
Datagram
datagram
Datagram
datagrams
deallocate
deallocated
Expand All @@ -73,8 +73,8 @@ dequeued
deregister
deregistered
deregistering
Deregisters
deregisters
Deregisters
deregistration
descriptor's
destructor
Expand Down Expand Up @@ -122,8 +122,8 @@ implementor
implementors
incrementing
interoperate
Invariants
invariants
Invariants
io
IOCP
iOS
Expand All @@ -149,8 +149,8 @@ misconfigured
mock's
mpmc
mpsc
Multi
multi
Multi
multicast
Multithreaded