feat: add logging check to pre-commit and CI workflow

This commit is contained in:
Tunglies
2025-11-01 21:22:41 +08:00
parent fb260fb33d
commit d3d32006c3
4 changed files with 12 additions and 2 deletions

View File

@@ -27,6 +27,11 @@ if [ -n "$RUST_FILES" ]; then
(
cd src-tauri
cargo clippy-all
if ! command -v clash-verge-logging-check >/dev/null 2>&1; then
echo "[pre-commit] Installing clash-verge-logging-check..."
cargo install --git https://github.com/clash-verge-rev/clash-verge-logging-check.git
fi
clash-verge-logging-check
)
fi