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

11 lines
274 B
Plaintext
Raw Permalink Normal View History

#!/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
./scripts/update_config_defaults.sh
git add config/defaults.hjson