Radish alpha
r
rad:z4D5UCArafTzTQpDZNQRuqswh3ury
Radicle desktop app
Radicle
Git
Add codespell configuration and make it fix some typos
Merged did:key:z6MkfCGi...puRr opened 6 months ago

Add rudimentary codespell config

[DATALAD RUNCMD] chore: run codespell throughout fixing a few new typos automagically

=== Do not change lines below === { “chain”: [], “cmd”: “codespell -w”, “exit”: 0, “extra_inputs”: [], “inputs”: [], “outputs”: [], “pwd”: “.” } ^^^ Do not change lines above ^^^

8 files changed +13 -7 65c453e3 af7d2e51
added .codespellrc
@@ -0,0 +1,6 @@
+
[codespell]
+
# Ref: https://github.com/codespell-project/codespell#using-a-config-file
+
skip = .git*,*.svg,package-lock.json,*.lock,*.css,.codespellrc
+
check-hidden = true
+
# ignore-regex = 
+
ignore-words-list = ser
modified 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,
modified 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::<Manifest>(blob.content()).map_err(|err| {
-
            error::Actions::Manfiest {
+
            error::Actions::Manifest {
                oid: blob.id().into(),
                err,
            }
modified 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.
modified 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") {
modified 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;

modified tests/e2e/clipboard.spec.ts
@@ -3,7 +3,7 @@ import { chromium } from "playwright";

import { formatRepositoryId } from "@app/lib/utils";

-
// 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 () => {
modified 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)} | `,