chore: more friendly lint

This commit is contained in:
Slinetrac
2025-10-07 18:28:32 +08:00
parent 0d12103085
commit 86b4712beb
2 changed files with 4 additions and 4 deletions

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 -- -D warnings
cargo clippy --manifest-path ./src-tauri/Cargo.toml
if [ $? -ne 0 ]; then
echo "Clippy found issues in src-tauri. Please fix them before pushing."
exit 1
@@ -31,4 +31,4 @@ else
echo "[pre-push] Remote $remote_name does not exist. Skipping format check."
fi
exit 0
exit 0