Added pre-commit and pre-push hooks with the help of cargo-husky. This also means that I need to temporarily allow specific bits of dead code until I implement support for at least one more Servarr

This commit is contained in:
2023-08-08 10:50:05 -06:00
parent 74502f5462
commit d5117fda39
8 changed files with 59 additions and 4 deletions
+11
View File
@@ -0,0 +1,11 @@
#!/bin/sh
set -e
echo "Running pre-commit hook:"
echo "Executing: cargo fmt"
cargo fmt
echo "Executing: cargo clippy --all-targets --workspace -- -D warnings"
find . | grep "\.\/src\/.*\.rs$" | xargs touch ; cargo clippy --all-targets --workspace -- -D warnings