pre-commit
1 #!/bin/bash 2 3 set -e 4 5 echo "Running clippy..." 6 7 if cargo clippy-amaru 2>&1; then 8 echo "" 9 else 10 echo "Discovered a clippy issue" 11 echo "" 12 echo "Please fix the clippy issues before committing." 13 echo "You can run 'cargo clippy-amaru' to see the full output." 14 echo "" 15 echo "To bypass this check (not recommended), use:" 16 echo " git commit --no-verify" 17 exit 1 18 fi