From d8eaa5c0046accca29931673118b0f60b628253b Mon Sep 17 00:00:00 2001 From: Joseph Cruz Date: Tue, 18 Jul 2023 08:02:24 -0400 Subject: [PATCH] build: use cargo hack for clippy --- cargo-make/lint.toml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/cargo-make/lint.toml b/cargo-make/lint.toml index d3a0b49e6..85be0de50 100644 --- a/cargo-make/lint.toml +++ b/cargo-make/lint.toml @@ -1,9 +1,10 @@ -[tasks.pre-clippy] -env = { CARGO_MAKE_CLIPPY_ARGS = "--all-targets --all-features -- -D warnings" } - [tasks.check-style] -dependencies = ["check-format-flow", "clippy-flow"] +dependencies = ["check-format-flow", "clippy-each-feature"] [tasks.check-format] env = { LEPTOS_PROJECT_DIRECTORY = "../" } args = ["fmt", "--", "--check", "--config-path", "${LEPTOS_PROJECT_DIRECTORY}"] + +[tasks.clippy-each-feature] +command = "cargo" +args = ["hack", "clippy", "--all", "--each-feature", "--no-dev-deps"]