From cac6373896d8baa65b1c2ae503590544422e4e22 Mon Sep 17 00:00:00 2001 From: Salama Ashoush Date: Mon, 27 May 2024 18:31:21 +0200 Subject: [PATCH] Fix clippy job --- .github/workflows/ci.yml | 2 +- .typos.toml | 21 +++++++++++++++++++++ 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 .typos.toml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e9ebcc4..56fdf71 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -139,7 +139,7 @@ jobs: - uses: Boshen/setup-rust@main with: components: clippy - - run: cargo lint -- -D warnings + - run: cargo clippy -- -D warnings doc: name: Doc diff --git a/.typos.toml b/.typos.toml new file mode 100644 index 0000000..e4b4e02 --- /dev/null +++ b/.typos.toml @@ -0,0 +1,21 @@ +# https://github.com/crate-ci/typos +# cargo install typos-cli +# typos + +[files] +extend-exclude = [ + "**/*.snap", + "pnpm-lock.yaml", + "**/*/CHANGELOG.md", + "**/*.svg", +] + +[default.extend-words] +trivias = "trivias" +trivia = "trivia" +xdescribe = "xdescribe" +seeked = "seeked" +labeledby = "labeledby" + +[default.extend-identifiers] +IIFEs = "IIFEs"