generate_cppcheck_report.sh
280 Bytes
#!/bin/bash
SCRIPT=$(readlink -f "$0")
SCRIPTDIR=$(dirname "$SCRIPT")
PROJECTDIR=${SCRIPTDIR}/..
REPORTDIR=${PROJECTDIR}/build/report
REPORTFILE=cppcheck-report.xml
cd ${PROJECTDIR}
mkdir -p ${REPORTDIR}
cppcheck -v --enable=all --xml -I. ./src 2>"${REPORTDIR}/${REPORTFILE}"