mirror of
https://github.com/chatmail/core.git
synced 2026-05-08 17:36:29 +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
|
override: true
|
||||||
- name: Cache rust cargo artifacts
|
- name: Cache rust cargo artifacts
|
||||||
uses: swatinem/rust-cache@v2
|
uses: swatinem/rust-cache@v2
|
||||||
- run: cargo clippy --workspace --tests --examples --benches -- -D warnings
|
- run: scripts/clippy.sh
|
||||||
|
|
||||||
docs:
|
docs:
|
||||||
name: Rust doc comments
|
name: Rust doc comments
|
||||||
|
|||||||
@@ -6,6 +6,8 @@ and an own build machine.
|
|||||||
|
|
||||||
## Description of scripts
|
## Description of scripts
|
||||||
|
|
||||||
|
- `clippy.sh` runs `cargo clippy` for all Rust code in the project.
|
||||||
|
|
||||||
- `../.github/workflows` contains jobs run by GitHub Actions.
|
- `../.github/workflows` contains jobs run by GitHub Actions.
|
||||||
|
|
||||||
- `remote_tests_python.sh` rsyncs to a build machine and runs
|
- `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