Skip to content

Commit 53f9e5a

Browse files
authored
ci: make sure dictionary words are sorted and unique (#6316)
1 parent 9077762 commit 53f9e5a

File tree

2 files changed

+33
-20
lines changed

2 files changed

+33
-20
lines changed

.github/workflows/ci.yml

+13
Original file line numberDiff line numberDiff line change
@@ -1011,6 +1011,19 @@ jobs:
10111011
with:
10121012
tool: cargo-spellcheck
10131013
- uses: actions/checkout@v4
1014+
- name: Make sure dictionary words are sorted and unique
1015+
run: |
1016+
# `sed` removes the first line (number of words) and
1017+
# the last line (new line).
1018+
#
1019+
# `sort` makes sure everything in between is sorted
1020+
# and contains no duplicates.
1021+
#
1022+
# Since `sort` is sensitive to locale, we set it
1023+
# using LC_ALL to en_US.UTF8 to be consistent in different
1024+
# environments.
1025+
1026+
sed '1d; $d' spellcheck.dic | LC_ALL=en_US.UTF8 sort -uc
10141027
- name: Run cargo-spellcheck
10151028
run: cargo spellcheck --code 1
10161029

spellcheck.dic

+20-20
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,30 @@
11
279
2+
&
3+
+
4+
<
5+
=
6+
>
27
\
38
~
4-
~4
5-
~12
6-
±1m
7-
±1ms
89
9-
&
10-
+
1110
0o777
1211
0s
1312
0xA
1413
0xD
1514
100ms
1615
10ms
16+
~12
17+
±1m
18+
±1ms
1719
1ms
1820
1s
1921
250ms
2022
2x
23+
~4
2124
443
2225
450ms
2326
50ms
2427
8MB
25-
<
26-
=
27-
>
2828
adaptor
2929
adaptors
3030
Adaptors
@@ -56,14 +56,14 @@ codec
5656
codecs
5757
combinator
5858
combinators
59-
Config
6059
config
60+
Config
6161
connectionless
6262
cpu
6363
cpus
6464
Customizable
65-
Datagram
6665
datagram
66+
Datagram
6767
datagrams
6868
deallocate
6969
deallocated
@@ -73,8 +73,8 @@ dequeued
7373
deregister
7474
deregistered
7575
deregistering
76-
Deregisters
7776
deregisters
77+
Deregisters
7878
deregistration
7979
descriptor's
8080
destructor
@@ -122,8 +122,8 @@ implementor
122122
implementors
123123
incrementing
124124
interoperate
125-
Invariants
126125
invariants
126+
Invariants
127127
io
128128
IOCP
129129
iOS
@@ -149,8 +149,8 @@ misconfigured
149149
mock's
150150
mpmc
151151
mpsc
152-
Multi
153152
multi
153+
Multi
154154
multicast
155155
Multithreaded
156156
mut
@@ -191,8 +191,8 @@ resize
191191
resized
192192
RMW
193193
runtime
194-
runtimes
195194
runtime's
195+
runtimes
196196
rwlock
197197
rx
198198
scalability
@@ -229,24 +229,24 @@ symlinks
229229
sys
230230
syscall
231231
syscalls
232-
TCP
233232
tcp
233+
TCP
234234
TestU01
235235
threadpool
236236
timestamp
237237
timestamps
238238
TLS
239239
TOCTOU
240240
TODO
241-
Tokio
242241
tokio
242+
Tokio
243243
tokio's
244244
Tokio's
245-
Tuple
246245
tuple
246+
Tuple
247247
tx
248-
UDP
249248
udp
249+
UDP
250250
UID
251251
unhandled
252252
unix
@@ -255,8 +255,8 @@ unpark
255255
Unpark
256256
unparked
257257
unparking
258-
Unparks
259258
unparks
259+
Unparks
260260
unreceived
261261
unsafety
262262
Unsets

0 commit comments

Comments
 (0)