mirror of
https://github.com/chatmail/core.git
synced 2026-05-03 13:26:28 +03:00
Add scripts/clippy.sh
The script makes it easier to manually check REPL and benchmark code with clippy without the need to copy-paste all the flags.
This commit is contained in:
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
@@ -31,7 +31,7 @@ jobs:
|
||||
override: true
|
||||
- name: Cache rust cargo artifacts
|
||||
uses: swatinem/rust-cache@v2
|
||||
- run: cargo clippy --workspace --tests --examples --benches -- -D warnings
|
||||
- run: scripts/clippy.sh
|
||||
|
||||
docs:
|
||||
name: Rust doc comments
|
||||
|
||||
@@ -6,6 +6,8 @@ and an own build machine.
|
||||
|
||||
## Description of scripts
|
||||
|
||||
- `clippy.sh` runs `cargo clippy` for all Rust code in the project.
|
||||
|
||||
- `../.github/workflows` contains jobs run by GitHub Actions.
|
||||
|
||||
- `remote_tests_python.sh` rsyncs to a build machine and runs
|
||||
|
||||
3
scripts/clippy.sh
Executable file
3
scripts/clippy.sh
Executable file
@@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
# Run clippy for all Rust code in the project.
|
||||
cargo clippy --workspace --tests --examples --benches -- -D warnings
|
||||
Reference in New Issue
Block a user