chore: unify hook behavior to prevent cross-platform CI failures

This commit is contained in:
Slinetrac
2025-10-08 08:10:33 +08:00
parent 10f250b7e7
commit 9d47bc66c4

View File

@@ -4,7 +4,7 @@
# $2: remote url (e.g., git@github.com:clash-verge-rev/clash-verge-rev.git)
if git diff --cached --name-only | grep -q '^src-tauri/'; then
cargo clippy --manifest-path ./src-tauri/Cargo.toml
cargo clippy --manifest-path ./src-tauri/Cargo.toml -- -D warnings
if [ $? -ne 0 ]; then
echo "Clippy found issues in src-tauri. Please fix them before pushing."
exit 1