lemmy/.cargo-husky/hooks/pre-commit

9 lines
264 B
Bash
Executable file

#!/bin/bash
set -e
cargo +nightly fmt -- --check
cargo clippy --workspace --tests --all-targets --all-features -- \
-D warnings -D deprecated -D clippy::perf -D clippy::complexity -D clippy::dbg_macro
cargo clippy --workspace -- \
-D clippy::unwrap_used