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="\