lint (232B)
1 #!/usr/bin/env bash 2 clang-format -i src/* 3 4 # Check if any files in the linted directories were modified 5 if git diff --name-only | grep -E '^(src/)' | grep -q .; then 6 echo "Linting required edits. Files were modified." 7 exit 1 8 fi