1
0
Fork 0
mirror of https://github.com/fastogt/fastocloud.git synced 2025-03-09 23:18:50 +00:00

Init FastoCloud on Github

This commit is contained in:
topilski 2023-01-21 05:21:27 +03:00
parent d0d234101d
commit d0d6551903
359 changed files with 32676 additions and 23 deletions

15
scripts/pre-commit Normal file
View file

@ -0,0 +1,15 @@
#!/bin/sh
TOTAL_ERRORS=0
for file in `git diff-index --name-only --diff-filter=d HEAD`; do
case "${file#*.}" in
cpp|c|h)
clang-format -i "${file}"
cpplint "${file}"
TOTAL_ERRORS=$(expr $TOTAL_ERRORS + $?);
;;
esac
done
exit $TOTAL_ERRORS