Codebase list ponyprog / lintian-fixes/main cppcheck.sh
lintian-fixes/main

Tree @lintian-fixes/main (Download .tar.gz)

cppcheck.sh @lintian-fixes/mainraw · history · blame

#!/bin/bash

CPPCHCK=`type -p cppcheck`

if [ ! -f "$CPPCHCK" ]; then
   # not found exit
   echo "please install cppcheck and restart this script"
   exit 0
fi

COUNT=$(cat /proc/cpuinfo | grep 'model name' | sed -e 's/.*: //' | wc -l)
echo "number of detected CPUs =" $COUNT

#cppcheck -j $COUNT --force --inline-suppr --enable=warning . 2>errors.txt
cppcheck -j $COUNT --force --enable=style . 2>cppreport.txt