cppcheck 366 B

123456789101112131415
  1. #!/bin/sh
  2. #TubeMan static analysis with cppcheck
  3. supp="testing/cppcheck.supp"
  4. out=$(cppcheck --inline-suppr --suppressions-list=$supp --enable=all --force \
  5. --std=c99 -UDEFAULT_TEXT_DOMAIN -U__GNUC__ -Isrc src/*.{c,h} gtk/*.{c,h} 2>&1)
  6. echo "$out"
  7. if echo "$out" | grep -q "(error)"; then
  8. echo "Error found!"
  9. exit 1
  10. else
  11. echo "No errors found."
  12. exit 0
  13. fi