mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
Add fix lint to make file (#7393)
This commit is contained in:
47
Makefile
47
Makefile
@ -309,6 +309,53 @@ lint:
|
|||||||
make lint-op-reth && \
|
make lint-op-reth && \
|
||||||
make lint-other-targets
|
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
|
.PHONY: rustdocs
|
||||||
rustdocs: ## Runs `cargo docs` to generate the Rust documents in the `target/doc` directory
|
rustdocs: ## Runs `cargo docs` to generate the Rust documents in the `target/doc` directory
|
||||||
RUSTDOCFLAGS="\
|
RUSTDOCFLAGS="\
|
||||||
|
|||||||
Reference in New Issue
Block a user