Blame view

script/generate_cppcheck_report.sh 280 Bytes
ea99df80   Benjamin Renard   Add script to gen...
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/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}"