lemmy/.cargo-husky/hooks/pre-commit
Dessalines 87bc2763ce
Fix husky fmt hook. (#1868)
* Fix husky fmt hook.

* Change to use default cargo

* Using nightly check
2021-11-02 15:15:19 +00:00

10 lines
274 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
./scripts/update_config_defaults.sh
git add config/defaults.hjson