You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
lemmy/.cargo-husky/hooks/pre-commit

13 lines
331 B
Bash

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