FRET-LibAFL/scripts/precommit.sh
Dominik Maier ce5fd435ea
Move all unnecessary std uses to core,alloc (#3027)
* Move all unnecessary std uses to core,alloc

* More

* more fix

* more

* more

* Remove libafl-fuzz grimoire

* more

* more

* more cleanup

* remove bins

* fix

* more fix
2025-02-27 14:32:37 +01:00

20 lines
556 B
Bash
Executable File

#!/bin/bash
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
cd "$SCRIPT_DIR/.." || exit 1
echo "[!] Running precommit script."
echo
echo
echo "[*] Formatting this beautiful code"
echo
"$SCRIPT_DIR"/fmt_all.sh || exit 1
echo
echo "[*] Asking clippy how to excel"
echo
"$SCRIPT_DIR"/clippy.sh || {
echo "[!] Error: clippy wasn't succesful." >&2
echo "[*] Hint: run scripts/autofix.sh to fix a bunch of errors automatically." >&2
exit 1 # Exit the script with a non-zero status.
}
echo
echo "[!] All done. Ready to commit!"