Skip to content

Commit 2b08288

Browse files
[core] configure cspell to check default modules only and fix typos (#3955)
When I saw PR #3951, I wondered why `cspell` didn't catch these typos before. Unfortunately, the default modules were excluded from the check. I have corrected this with these changes. This even revealed a code error in `modules/default/weather/providers/overrideWrapper.js`: - before: `fetchEatherHourly` - after: `fetchWeatherHourly`
1 parent 8e9ee89 commit 2b08288

File tree

17 files changed

+127
-26
lines changed

17 files changed

+127
-26
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ planned for 2026-01-01
3131
- [ci] Add concurrency to automated tests workflow to cancel outdated runs (#3943)
3232
- [tests] replace `node-libgpiod` with `serialport` in electron-rebuild workflow (#3945)
3333
- [calendar] hide repeatingCountTitle if the event count is zero (#3949)
34+
- [core] configure cspell to check default modules only and fix typos (#3955)
3435

3536
### Fixed
3637

cspell.config.json

Lines changed: 101 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,25 @@
33
"language": "en",
44
"words": [
55
"aarch",
6+
"Adak",
67
"Alvinger",
78
"Ampio",
89
"andrezibaia",
910
"angeldeejay",
11+
"apikey",
1012
"apiontek",
1113
"armv",
1214
"ashishtank",
1315
"autoplay",
16+
"Autorestart",
1417
"beada",
18+
"Behaviour",
1519
"Binney",
1620
"bluemanos",
1721
"bnitkin",
1822
"bokmål",
23+
"bouncyflip",
24+
"boxspinner",
1925
"Brasileiro",
2026
"Brento",
2127
"browserwindow",
@@ -25,14 +31,22 @@
2531
"bugsounet",
2632
"buxxi",
2733
"byday",
34+
"calcage",
35+
"calendarfetcher",
2836
"calendarfetcherutils",
2937
"calendarutils",
38+
"calevents",
3039
"chamakura",
40+
"Citypage",
3141
"cjbrunner",
42+
"clearsky",
3243
"clientonly",
3344
"clockfaces",
45+
"cloudcover",
3446
"cmdline",
3547
"codac",
48+
"Codrops",
49+
"cornerexpand",
3650
"Crazylegstoo",
3751
"crazyscot",
3852
"Creepin",
@@ -43,14 +57,23 @@
4357
"Cymraeg",
4458
"dariom",
4559
"darksky",
60+
"dataheaders",
61+
"Datamart",
4662
"dateheader",
4763
"dateheaders",
64+
"datekey",
4865
"dathbe",
4966
"davide",
5067
"DAYAFTERTOMORROW",
5168
"DAYBEFOREYESTERDAY",
5269
"defaultmodules",
70+
"Deificit",
71+
"Descr",
72+
"dewpoint",
5373
"dgoth",
74+
"difflink",
75+
"dismissttl",
76+
"Displayer",
5477
"dkallen",
5578
"drivelist",
5679
"DTEND",
@@ -63,18 +86,26 @@
6386
"Edgardos",
6487
"Ekristoffe",
6588
"elec",
89+
"elif",
6690
"eltociear",
91+
"endfor",
92+
"endmacro",
6793
"envcanada",
6894
"envsub",
6995
"envsubst",
7096
"eouia",
97+
"Evapotranspration",
7198
"exdate",
99+
"exdates",
72100
"expectedheaders",
101+
"exploader",
73102
"ezeholz",
103+
"Fadesteps",
74104
"Faizan",
75105
"feedme",
76106
"feelslike",
77107
"Fenner",
108+
"Feuchte",
78109
"fewieden",
79110
"fixuppm",
80111
"flopp",
@@ -83,7 +114,9 @@
83114
"forecastweather",
84115
"fortawesome",
85116
"frameguard",
117+
"freezinglevel",
86118
"Frysk",
119+
"fullarticle",
87120
"fulldate",
88121
"fullday",
89122
"fullscreen",
@@ -92,9 +125,19 @@
92125
"GHSA",
93126
"ghsas",
94127
"grenagit",
128+
"Halfclear",
129+
"heavyrain",
130+
"heavyrainandthunder",
131+
"heavyrainshowers",
132+
"heavyrainshowersandthunder",
133+
"heavysleet",
134+
"heavysleetshowersandthunder",
135+
"heavysnow",
136+
"heavysnowandthunder",
95137
"Heiko",
96138
"Hirschberger",
97139
"hourlyweather",
140+
"humidex",
98141
"Hwind",
99142
"ical",
100143
"illimarkangur",
@@ -123,15 +166,18 @@
123166
"Knapoc",
124167
"Koepke",
125168
"kolbyjack",
169+
"Komplex",
126170
"krekos",
127171
"Kristjan",
128172
"krukle",
129173
"labwc",
130174
"Landis",
131175
"larryare",
176+
"Lastberechnung",
132177
"letsencrypt",
133178
"libgpiod",
134179
"Lightspeed",
180+
"loadingcircle",
135181
"locationforecast",
136182
"lockstring",
137183
"lstrip",
@@ -159,9 +205,12 @@
159205
"Ñandú",
160206
"nathannaveen",
161207
"naveensrinivasan",
208+
"nbsp",
162209
"ndom",
163210
"Nerfzooka",
164211
"NEWSFEED",
212+
"newsfeedfetcher",
213+
"newsfetcher",
165214
"newsitems",
166215
"nfogal",
167216
"njwilliams",
@@ -170,42 +219,61 @@
170219
"nunjuck",
171220
"odroid",
172221
"oemel",
222+
"oldconfig",
173223
"onecall",
174224
"onevent",
175225
"openmeteo",
226+
"openmeto",
176227
"openweathermap",
177228
"oraclesean",
178229
"oscarb",
230+
"pcat",
179231
"philnagel",
232+
"pirateweather",
233+
"plained",
180234
"plebcity",
235+
"pmax",
236+
"pmean",
237+
"pmedian",
238+
"pmin",
181239
"Português",
182240
"PRECIP",
183241
"Problema",
184242
"psieg",
243+
"pubdate",
185244
"radokristof",
186245
"rajniszp",
187246
"rebuilded",
188247
"Reis",
189248
"rejas",
249+
"relativehumidity",
190250
"Resig",
191251
"roboto",
192252
"rohitdharavath",
193253
"Rosso",
254+
"Rothfusz",
194255
"rrule",
195256
"savvadam",
196257
"sdetweil",
258+
"searchstr",
197259
"sendheaders",
198260
"serveronly",
199261
"sexualized",
262+
"Sitecode",
200263
"skpanagiotis",
201264
"SMHI",
202265
"Snille",
266+
"snowandthunder",
267+
"snowshowersandthunder",
203268
"socketclient",
204269
"socketio",
205270
"spectron",
206271
"Starinvest",
272+
"stationid",
273+
"STEADMAN",
207274
"sthuber",
208275
"Stieber",
276+
"strinner",
209277
"stylelintrc",
210278
"subclassing",
211279
"sunaction",
@@ -216,42 +284,74 @@
216284
"tada",
217285
"taglist",
218286
"Teeuw",
287+
"Teil",
219288
"TESTMODE",
220289
"thomasrockhu",
290+
"thumbslider",
291+
"timeformat",
292+
"titlereplacestr",
293+
"titlesearchstr",
294+
"todaytemp",
221295
"tomzt",
296+
"trunc",
297+
"ttlms",
222298
"ukmetoffice",
223299
"ukmetofficedatahub",
224300
"unitless",
301+
"unixtime",
225302
"unparseable",
226303
"updatenotification",
304+
"uxdt",
227305
"Vaice",
228306
"veeck",
307+
"verjaardag",
229308
"VEVENT",
230309
"vgtu",
310+
"Vitest",
231311
"Voelt",
312+
"Vorberechnung",
232313
"vppencilsharpener",
233314
"Wallys",
234315
"Weatherbit",
316+
"weathercode",
235317
"WEATHERDATA",
236318
"Weatherflow",
237319
"weatherforecast",
238320
"weathergov",
239321
"weathericon",
240322
"weathericons",
241323
"weatherobject",
324+
"weatherprovider",
242325
"weatherutils",
326+
"webcal",
327+
"winddirection",
328+
"windgusts",
243329
"windspeed",
244330
"Woolridge",
245331
"worktree",
332+
"Wsymb",
246333
"xlarge",
334+
"xmark",
247335
"xrandr",
248336
"xsmall",
249337
"xsorifc",
250338
"xwindows",
251339
"xxxe",
252340
"Ybbet",
341+
"yearmatch",
253342
"yearmatchgroup"
254343
],
255-
"ignorePaths": ["node_modules/**", "modules/**", "translations/**", "tests/mocks/**", "tests/e2e/modules/clock_es_spec.js", "css/roboto.css"],
344+
"ignorePaths": [
345+
"css/roboto.css",
346+
"node_modules/**",
347+
"modules/!(default)/**",
348+
"modules/default/**/translations/!(en).json",
349+
"modules/default/calendar/windowsZones.json",
350+
"modules/default/clock/faces/*.svg",
351+
"modules/default/weather/providers/yr.js",
352+
"tests/mocks/**",
353+
"tests/e2e/modules/clock_es_spec.js",
354+
"translations/**"
355+
],
256356
"dictionaries": ["node"]
257357
}

modules/default/alert/notificationFx.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
// notice, warning, error, success
6060
// will add class ns-type-warning, ns-type-error or ns-type-success
6161
type: "notice",
62-
// if the user doesn´t close the notification then we remove it
62+
// if the user doesn't close the notification then we remove it
6363
// after the following time
6464
ttl: 6000,
6565
al_no: "ns-box",

modules/default/calendar/calendar.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ Module.register("calendar", {
411411
timeWrapper.innerHTML = CalendarUtils.capFirst(eventStartDateMoment.format(this.config.dateFormat));
412412
// Add end time if showEnd
413413
if (this.config.showEnd) {
414-
// and has a duation
414+
// and has a duration
415415
if (event.startDate !== event.endDate) {
416416
timeWrapper.innerHTML += "-";
417417
timeWrapper.innerHTML += CalendarUtils.capFirst(eventEndDateMoment.format(this.config.dateEndFormat));
@@ -493,7 +493,7 @@ Module.register("calendar", {
493493
}
494494
Log.info("[calendar] event fullday");
495495
} else if (eventStartDateMoment.diff(now, "h") < this.config.getRelative) {
496-
Log.info("[calendar] not full day but within getrelative size");
496+
Log.info("[calendar] not full day but within getRelative size");
497497
// If event is within getRelative hours, display 'in xxx' time format or moment.fromNow()
498498
timeWrapper.innerHTML = `${CalendarUtils.capFirst(eventStartDateMoment.fromNow())}`;
499499
}
@@ -721,7 +721,7 @@ Module.register("calendar", {
721721
}
722722
events = newEvents;
723723
}
724-
Log.info(`[calendar] slicing events total maxcount=${this.config.maximumEntries}`);
724+
Log.info(`[calendar] slicing events total maxCount=${this.config.maximumEntries}`);
725725
return events.slice(0, this.config.maximumEntries);
726726
},
727727

@@ -909,7 +909,7 @@ Module.register("calendar", {
909909

910910
/**
911911
* Broadcasts the events to all other modules for reuse.
912-
* The all events available in one array, sorted on startdate.
912+
* The all events available in one array, sorted on startDate.
913913
*/
914914
broadcastEvents () {
915915
const eventList = this.createEventList(false);

modules/default/calendar/calendarfetcherutils.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ const CalendarFetcherUtils = {
121121
return JSON.stringify(d) !== "null";
122122
});
123123

124-
// Dates are returned in UTC timezone but with localdatetime because tzid is null.
124+
// Dates are returned in UTC timezone but with local datetime because tzid is null.
125125
// So we map the date to a moment using the original timezone of the event.
126126
return dates.map((d) => (event.start.tz ? moment.tz(d, "UTC").tz(event.start.tz, true) : moment.tz(d, "UTC").tz(CalendarFetcherUtils.getLocalTimezone(), true)));
127127
},
@@ -202,7 +202,7 @@ const CalendarFetcherUtils = {
202202
const geo = event.geo || false;
203203
const description = event.description || false;
204204

205-
// TODO This should be a seperate function.
205+
// TODO This should be a separate function.
206206
if (event.rrule && typeof event.rrule !== "undefined" && !isFacebookBirthday) {
207207
// Recurring event.
208208
let moments = CalendarFetcherUtils.getMomentsFromRecurringEvent(event, pastLocalMoment, futureLocalMoment, durationMs);

modules/default/calendar/calendarutils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ const CalendarUtils = {
8888
* @param {string} title The title to transform.
8989
* @param {object} titleReplace object definition of parts to be replaced in the title
9090
* object definition:
91-
* search: {string,required} RegEx in format //x or simple string to be searched. For (birthday) year calcluation, the element matching the year must be in a RegEx group
91+
* search: {string,required} RegEx in format //x or simple string to be searched. For (birthday) year calculation, the element matching the year must be in a RegEx group
9292
* replace: {string,required} Replacement string, may contain match group references (latter is required for year calculation)
9393
* yearmatchgroup: {number,optional} match group for year element
9494
* @returns {string} The transformed title.

modules/default/compliments/compliments.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ Module.register("compliments", {
8181
minute_sync_delay);
8282
},
8383

84-
// check to see if this entry could be a cron entry wich contains spaces
84+
// check to see if this entry could be a cron entry which contains spaces
8585
isCronEntry (entry) {
8686
return entry.includes(" ");
8787
},
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
Use ` | safe` to allow html tages within the text string.
2+
Use ` | safe` to allow html tags within the text string.
33
https://mozilla.github.io/nunjucks/templating.html#autoescaping
44
-->
55
<div>{{ text | safe }}</div>

0 commit comments

Comments
 (0)