From af7d2e5181eb516957d2d85b5dd77356d40ea7f7 Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Sat, 25 Oct 2025 11:04:19 +0200 Subject: [PATCH] chore: run codespell to fix typos automagically --- crates/radicle-types/src/cobs/stream/error.rs | 2 +- crates/radicle-types/src/cobs/stream/iter.rs | 2 +- eslint.config.js | 2 +- src/lib/notification.ts | 2 +- src/lib/updateChecker.svelte.ts | 2 +- tests/e2e/clipboard.spec.ts | 2 +- tests/support/logPrefix.ts | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/crates/radicle-types/src/cobs/stream/error.rs b/crates/radicle-types/src/cobs/stream/error.rs index 1b01951bb..47fe91474 100644 --- a/crates/radicle-types/src/cobs/stream/error.rs +++ b/crates/radicle-types/src/cobs/stream/error.rs @@ -40,7 +40,7 @@ pub enum Actions { err: git2::Error, }, #[error("failed to deserialize the COB manifest {oid}: {err}")] - Manfiest { + Manifest { oid: Oid, #[source] err: json::Error, diff --git a/crates/radicle-types/src/cobs/stream/iter.rs b/crates/radicle-types/src/cobs/stream/iter.rs index 92124f85f..e41865f00 100644 --- a/crates/radicle-types/src/cobs/stream/iter.rs +++ b/crates/radicle-types/src/cobs/stream/iter.rs @@ -173,7 +173,7 @@ impl<'a, A> ActionsIter<'a, A> { .map_or("unknown".to_string(), |kind| kind.to_string()), })?; let manifest = serde_json::from_slice::(blob.content()).map_err(|err| { - error::Actions::Manfiest { + error::Actions::Manifest { oid: blob.id().into(), err, } diff --git a/eslint.config.js b/eslint.config.js index 701a799ff..99a9a2676 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -119,7 +119,7 @@ export default [ "warn", { default: ["field", "signature", "constructor", "method"] }, ], - // Allow explict type annotations for additional clarity. + // Allow explicit type annotations for additional clarity. "@typescript-eslint/no-inferrable-types": "off", "@typescript-eslint/no-invalid-void-type": ["warn"], // Disallow Unused Variables. diff --git a/src/lib/notification.ts b/src/lib/notification.ts index d6dc9bd8a..b1a323197 100644 --- a/src/lib/notification.ts +++ b/src/lib/notification.ts @@ -85,7 +85,7 @@ export function createSummary( } else if (lastAction.type === "review") { summary = `left a review with a comment on revision %${formatOid(lastAction.revision)}%`; } else if (lastAction.type === "assign") { - summary = "changed assignes"; + summary = "changed assigns"; } else if (lastAction.type === "revision.comment.edit") { summary = `edited ${count > 1 ? count : "a"} ${pluralize("comment", count)}`; } else if (lastAction.type === "comment.redact") { diff --git a/src/lib/updateChecker.svelte.ts b/src/lib/updateChecker.svelte.ts index c88d09005..dcc526713 100644 --- a/src/lib/updateChecker.svelte.ts +++ b/src/lib/updateChecker.svelte.ts @@ -96,7 +96,7 @@ class UpdateChecker { ); } - // Enable background udpate checking. + // Enable background update checking. public enable = (): void => { isEnabledStore.value = true; diff --git a/tests/e2e/clipboard.spec.ts b/tests/e2e/clipboard.spec.ts index 1fe2cc166..48815b14c 100644 --- a/tests/e2e/clipboard.spec.ts +++ b/tests/e2e/clipboard.spec.ts @@ -1,7 +1,7 @@ import { expect, markdownRid, test } from "@tests/support/fixtures.js"; import { chromium } from "playwright"; -// We explicitly run all clipboard tests withing the context of a single test +// We explicitly run all clipboard tests within the context of a single test // so that we don't run into race conditions, because there is no way to isolate // the clipboard in Playwright yet. test("copy to clipboard", async () => { diff --git a/tests/support/logPrefix.ts b/tests/support/logPrefix.ts index a517618f8..c540355cc 100644 --- a/tests/support/logPrefix.ts +++ b/tests/support/logPrefix.ts @@ -33,7 +33,7 @@ export function logPrefix(label: string): string { } // We reset colors at the beginning of each line to avoid styles from previous - // lines messing up prefix colors. This is noticable in rust stack traces + // lines messing up prefix colors. This is noticeable in rust stack traces // where the `in` and `with` keywords have a white background color. return chalk.reset[assignedColors[label]]( `${label.padEnd(PADDING_WIDTH)} | `,