Skip to content

Commit

Permalink
Merge pull request #957 from chainwayxyz/chore/dprint-lint
Browse files Browse the repository at this point in the history
Add dprint to make lints
  • Loading branch information
jfldde authored Aug 7, 2024
2 parents cd1a59b + 116f03a commit 3b53dde
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,14 @@ endif

lint: ## cargo check and clippy. Skip clippy on guest code since it's not supported by risc0
## fmt first, because it's the cheapest
dprint check
cargo +nightly fmt --all --check
cargo check --all-targets --all-features
$(MAKE) check-fuzz
SKIP_GUEST_BUILD=1 cargo clippy --all-targets --all-features

lint-fix: ## cargo fmt, fix and clippy. Skip clippy on guest code since it's not supported by risc0
lint-fix: ## dprint fmt, cargo fmt, fix and clippy. Skip clippy on guest code since it's not supported by risc0
dprint fmt
cargo +nightly fmt --all
cargo fix --allow-dirty
SKIP_GUEST_BUILD=1 cargo clippy --fix --allow-dirty
Expand Down

0 comments on commit 3b53dde

Please sign in to comment.