build: use cargo hack for clippy

This commit is contained in:
Joseph Cruz 2023-07-18 08:02:24 -04:00
parent 85644a7c1c
commit d8eaa5c004

View file

@ -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"]