automate/020_cppcheck.sh

15 lines
385 B
Bash
Executable File

#!/usr/bin/env bash
# http://cppcheck.net/manual.html
apt install -y cppcheck
# DEST=${1:-/etc/skel}
# for suppressions use --suppressions-list=${DEST}/.cppcheckrc
# cat > ${DEST}/.cppcheckrc<<EOF
# // suppress memleak and exceptNew errors in the file src/file1.cpp
# memleak:src/file1.cpp
# exceptNew:src/file1.cpp
#
# uninitvar // suppress all uninitvar errors in all files
# EOF