Skip to content

Commit f40ae9e

Browse files
committed
chore: add check_code_before_commit.sh
Signed-off-by: Xin Liu <[email protected]>
1 parent 0dfae55 commit f40ae9e

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

check_code_before_commit.sh

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/bin/bash
2+
3+
# Find unused dependencies in Cargo.toml
4+
cargo +nightly udeps
5+
6+
# Sort dependencies in Cargo.toml alphabetically
7+
cargo sort
8+
9+
# Format code
10+
cargo +nightly fmt --all -- --check
11+
12+
# Clippy
13+
cargo +nightly clippy --target wasm32-wasip1 --all-features -- -D warnings

0 commit comments

Comments
 (0)