Revision 29b3fba658773ece8f868d956ecd5eff95c8749a authored by Fabian Brandt on 23 April 2021, 09:36:06 UTC, committed by GitHub on 23 April 2021, 09:36:06 UTC
1 parent eb959c1
Raw File
check_code.sh
#!/bin/bash
RETURNCODE=0

echo -e "We will execute a number of check intended to improve code quality."
echo -e "Typically violations can be automatically fixed by executing:"
echo -e "./check_code.sh -w"
echo -e "\e[31m\e[1mWhile we're trying to be careful ALWAYS keep a copy of the original around!\e[39m\e[0m"
echo

for check in CppIndentation.py CppClangFormat.py CppIncludeGuards.py; do
  echo -e "\e[32m=== Execute $check ===\e[39m"
  if extrafiles/tooling/$check $@ ; then
    echo -e "\e[32mOK.\e[39m"
  else
    echo -e "\e[31mERROR.\e[39m"
    RETURNCODE=1
  fi
  echo
done

exit $RETURNCODE
back to top