Add fix lint to make file (#7393)

This commit is contained in:
Emilia Hane
2024-03-31 14:53:14 +02:00
committed by GitHub
parent 4c82d271ee
commit 283d51c2f1

View File

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