Skip to content

Commit 52f333a

Browse files
committed
ci: add codespell action, fix all typos
v2: - ignore NEWS, omit suppressions - split off style changes Signed-off-by: Emil Velikov <[email protected]>
1 parent 425f92c commit 52f333a

File tree

7 files changed

+41
-9
lines changed

7 files changed

+41
-9
lines changed

.codespellignore

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# SPDX-FileCopyrightText: 2024 Emil Velikov <[email protected]>
2+
#
3+
# SPDX-License-Identifier: LGPL-2.1-or-later
4+
5+
bridg
6+
iIF
7+
ser
8+
wHeight

.github/workflows/codespell.yml

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# SPDX-FileCopyrightText: 2024 Emil Velikov <[email protected]>
2+
#
3+
# SPDX-License-Identifier: LGPL-2.1-or-later
4+
5+
name: Check spelling with codespell
6+
7+
on:
8+
push:
9+
branches: [master, ci-test]
10+
pull_request:
11+
branches: [master]
12+
13+
permissions:
14+
contents: read
15+
16+
jobs:
17+
spellcheck:
18+
runs-on: ubuntu-latest
19+
steps:
20+
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
21+
- uses: codespell-project/actions-codespell@406322ec52dd7b488e48c1c4b82e2a8b3a1bf630 # v2.1
22+
with:
23+
ignore_words_file: .codespellignore
24+
skip: NEWS

ccan/list/list.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -717,7 +717,7 @@ static inline void list_prepend_list_(struct list_head *to,
717717
* @off: offset(relative to @i) at which list node data resides.
718718
*
719719
* This is a low-level wrapper to iterate @i over the entire list, used to
720-
* implement all oher, more high-level, for-each constructs. It's a for loop,
720+
* implement all other, more high-level, for-each constructs. It's a for loop,
721721
* so you can break and continue as normal.
722722
*
723723
* WARNING! Being the low-level macro that it is, this wrapper doesn't know

desc-dump.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ static void number_renderer(
205205
/**
206206
* Render a field's value to stdout.
207207
*
208-
* The manner of rendering the value is dependant on the value type.
208+
* The manner of rendering the value is dependent on the value type.
209209
*
210210
* \param[in] dev LibUSB device handle.
211211
* \param[in] current Descriptor definition field to render.
@@ -320,7 +320,7 @@ static void value_renderer(
320320
const struct desc *ext_desc;
321321
const struct desc_ext *ext;
322322

323-
/* Lookup the extention descriptor definitions to use, */
323+
/* Lookup the extension descriptor definitions to use, */
324324
for (ext = current->extension.d; ext->desc != NULL; ext++) {
325325
if (ext->type == type) {
326326
ext_desc = ext->desc;

lsusb.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@
118118
unsigned int verblevel = VERBLEVEL_DEFAULT;
119119
static int do_report_desc = 1;
120120
static const char *const encryption_type[] = {
121-
"UNSECURE", "WIRED", "CCM_1", "RSA_1", "RESERVED",
121+
"INSECURE", "WIRED", "CCM_1", "RSA_1", "RESERVED",
122122
};
123123

124124
static const char *const vconn_power[] = {

usb-spec.h

+4-4
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ static const struct genericstrtable hutus[] = {
292292
{ (0x02 << 16) + 0x006, "Sailing Simulation Device" },
293293
{ (0x02 << 16) + 0x007, "Motorcycle Simulation Device" },
294294
{ (0x02 << 16) + 0x008, "Sports Simulation Device" },
295-
{ (0x02 << 16) + 0x009, "Airplane Simualtion Device" },
295+
{ (0x02 << 16) + 0x009, "Airplane Simulation Device" },
296296
{ (0x02 << 16) + 0x00a, "Helicopter Simulation Device" },
297297
{ (0x02 << 16) + 0x00b, "Magic Carpet Simulation Device" },
298298
{ (0x02 << 16) + 0x00c, "Bicycle Simulation Device" },
@@ -896,7 +896,7 @@ static const struct genericstrtable hutus[] = {
896896
{ (0x0c << 16) + 0x18d, "AL Contacts/Address Book" },
897897
{ (0x0c << 16) + 0x18e, "AL Calendar/Schedule" },
898898
{ (0x0c << 16) + 0x18f, "AL Task/Project Manager" },
899-
{ (0x0c << 16) + 0x190, "AL Log/Jounal/Timecard" },
899+
{ (0x0c << 16) + 0x190, "AL Log/Journal/Timecard" },
900900
{ (0x0c << 16) + 0x191, "AL Checkbook/Finance" },
901901
{ (0x0c << 16) + 0x192, "AL Calculator" },
902902
{ (0x0c << 16) + 0x193, "AL A/V Capture/Playback" },
@@ -1192,7 +1192,7 @@ static const struct genericstrtable hutus[] = {
11921192
{ (0x82 << 16) + 0x06e, "Green Video Black Level" },
11931193
{ (0x82 << 16) + 0x070, "Blue Video Black Level" },
11941194
{ (0x82 << 16) + 0x0a2, "Auto Size Center" },
1195-
{ (0x82 << 16) + 0x0a4, "Polarity Horizontal Sychronization" },
1195+
{ (0x82 << 16) + 0x0a4, "Polarity Horizontal Synchronization" },
11961196
{ (0x82 << 16) + 0x0a6, "Polarity Vertical Synchronization" },
11971197
{ (0x82 << 16) + 0x0aa, "Screen Orientation" },
11981198
{ (0x82 << 16) + 0x0ac, "Horizontal Frequency in Hz" },
@@ -1424,7 +1424,7 @@ static const struct genericstrtable langids[] = {
14241424
{ 0x0009 + (0x06 << 10), "Ireland" },
14251425
{ 0x0009 + (0x07 << 10), "South Africa" },
14261426
{ 0x0009 + (0x08 << 10), "Jamaica" },
1427-
{ 0x0009 + (0x09 << 10), "Carribean" },
1427+
{ 0x0009 + (0x09 << 10), "Caribbean" },
14281428
{ 0x0009 + (0x0a << 10), "Belize" },
14291429
{ 0x0009 + (0x0b << 10), "Trinidad" },
14301430
{ 0x0009 + (0x0c << 10), "Zimbabwe" },

usbhid-dump/NEWS

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
* Added interface number limiting option -i, --interface=NUMBER.
2525
* Added stream interrupt transfer timeout option -t,
2626
--stream-timeout=NUMBER, which is set to 1 minute by default to
27-
allow recovery of accidentially captured terminal input device.
27+
allow recovery of accidentally captured terminal input device.
2828
This timeout is printed on the start of stream dumping.
2929

3030
2010-08-24: 1.1

0 commit comments

Comments
 (0)