From 283d51c2f1fc932086de51e0ab0d68e17403edf2 Mon Sep 17 00:00:00 2001 From: Emilia Hane Date: Sun, 31 Mar 2024 14:53:14 +0200 Subject: [PATCH] Add fix lint to make file (#7393) --- Makefile | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) diff --git a/Makefile b/Makefile index ac2a25bb5..c8adf4ff9 100644 --- a/Makefile +++ b/Makefile @@ -309,6 +309,53 @@ lint: make lint-op-reth && \ make lint-other-targets +fix-lint-reth: + cargo +nightly clippy \ + --workspace \ + --bin "reth" \ + --lib \ + --examples \ + --tests \ + --benches \ + --features "ethereum $(BIN_OTHER_FEATURES)" \ + --fix \ + --allow-staged \ + --allow-dirty \ + -- -D warnings + +fix-lint-op-reth: + cargo +nightly clippy \ + --workspace \ + --bin "op-reth" \ + --lib \ + --examples \ + --tests \ + --benches \ + --features "optimism $(BIN_OTHER_FEATURES)" \ + --fix \ + --allow-staged \ + --allow-dirty \ + -- -D warnings + +fix-lint-other-targets: + cargo +nightly clippy \ + --workspace \ + --lib \ + --examples \ + --tests \ + --benches \ + --all-features \ + --fix \ + --allow-staged \ + --allow-dirty \ + -- -D warnings + +fix-lint: + make lint-reth && \ + make lint-op-reth && \ + make lint-other-targets && \ + make fmt + .PHONY: rustdocs rustdocs: ## Runs `cargo docs` to generate the Rust documents in the `target/doc` directory RUSTDOCFLAGS="\