mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-01-29 00:35:38 +08:00
chore: more friendly lint
This commit is contained in:
@@ -33,7 +33,7 @@ if [ -n "$RUST_FILES" ]; then
|
||||
exit 1
|
||||
fi
|
||||
# Run clippy for linting
|
||||
if ! cargo clippy -- -D warnings; then
|
||||
if ! cargo clippy; then
|
||||
echo "clippy found issues. Please fix them before committing."
|
||||
cd ..
|
||||
exit 1
|
||||
@@ -42,4 +42,4 @@ if [ -n "$RUST_FILES" ]; then
|
||||
fi
|
||||
|
||||
# Allow commit
|
||||
exit 0
|
||||
exit 0
|
||||
|
||||
Reference in New Issue
Block a user