mirror of
https://github.com/chatmail/core.git
synced 2026-05-11 19:06:29 +03:00
chore: allow passing arguments to scripts/clippy.sh
This makes it possible to run `scripts/clippy.sh --fix --allow-dirty` to fix clippy warnings automatically.
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
#!/bin/sh
|
||||
# Run clippy for all Rust code in the project.
|
||||
cargo clippy --workspace --all-targets --all-features -- -D warnings
|
||||
#
|
||||
# To check, run
|
||||
# scripts/clippy.sh
|
||||
#
|
||||
# To automatically fix warnings, run
|
||||
# scripts/clippy.sh --fix --allow-dirty
|
||||
cargo clippy --workspace --all-targets --all-features "$@" -- -D warnings
|
||||
|
||||
Reference in New Issue
Block a user