lemmy/.cargo-husky/hooks/pre-commit
2021-10-29 12:50:32 +02:00

11 lines
283 B
Bash
Executable file

#!/bin/bash
set -e
cargo +nightly fmt -- --check
cargo +nightly 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