Skip to content

Commit 5599c72

Browse files
authored
Merge pull request #153 from movementlabsxyz/l-monninger/warn-unused
feat: add unused dependency checks to pre-commit hook
2 parents 2529fb5 + 66aec5a commit 5599c72

File tree

46 files changed

+54
-682
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+54
-682
lines changed

.githooks/pre-commit

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
11
#!/bin/bash
22

33
set -e
4+
########
5+
# Cargo dependencies
6+
#######
7+
8+
# if cargo machete does not return 0
9+
cargo machete || {
10+
echo "❌ You have unused dependencies in your Cargo.toml. Check the above."
11+
exit 1
12+
}
13+
414
##########
515
# CLAP CLI
616
##########

0 commit comments

Comments
 (0)