Skip to content

Commit

Permalink
chore: add check_code_before_commit.sh
Browse files Browse the repository at this point in the history
Signed-off-by: Xin Liu <[email protected]>
  • Loading branch information
apepkuss committed Jan 13, 2025
1 parent 0dfae55 commit f40ae9e
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions check_code_before_commit.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash

# Find unused dependencies in Cargo.toml
cargo +nightly udeps

# Sort dependencies in Cargo.toml alphabetically
cargo sort

# Format code
cargo +nightly fmt --all -- --check

# Clippy
cargo +nightly clippy --target wasm32-wasip1 --all-features -- -D warnings

0 comments on commit f40ae9e

Please sign in to comment.