mirror of
https://github.com/Drop-OSS/drop.git
synced 2026-07-25 09:14:54 +10:00
ci: add comprehensive formatting and linting setup
- Add formatting commands to justfile (format, fmt_check, clippy_check, fc) - Create GitHub Actions workflows for automated fmt and clippy checks - Fix existing clippy warnings in macro code - Ensure CI enforcement of code quality standards This brings native_model in line with native_db's robust formatting and linting approach.
This commit is contained in:
committed by
Vincent Herlemont
parent
64b1d15dd1
commit
31efa79429
@@ -60,3 +60,20 @@ bench_overhead:
|
||||
cargo bench --bench overhead
|
||||
|
||||
bench_all: bench_overhead
|
||||
|
||||
format:
|
||||
cargo clippy; \
|
||||
cargo fmt --all
|
||||
|
||||
fmt_check:
|
||||
cargo fmt --all -- --check
|
||||
|
||||
clippy_check:
|
||||
rustc --version; \
|
||||
cargo clippy --version; \
|
||||
cargo clippy -- -D warnings
|
||||
|
||||
# Format check
|
||||
fc:
|
||||
just fmt_check; \
|
||||
just clippy_check
|
||||
|
||||
Reference in New Issue
Block a user