valentina_old/scripts/cppcheck.sh

22 lines
752 B
Bash
Raw Normal View History

#!/bin/sh
# This script helps run cppcheck with the same keys we have on codeship.com (except for key --platform=unix32).
# Please, run this script from folder <root_folder>/scripts.
# Because we use the last available cppcheck version usually we build it manually.
2022-08-08 14:25:14 +02:00
CPPCHECK="../../../../cppcheck-2.8/cppcheck"
$CPPCHECK \
-j4 -f -q \
-UDRW_DBG \
-U__INTEL_COMPILER_UPDATE \
--template '{file}:{line}:{message}:{id}' \
--inline-suppr \
--platform=unix64 \
2022-08-08 14:25:14 +02:00
--std=c++17 \
--enable=all \
2022-08-08 14:25:14 +02:00
--library=qt \
--library=std \
--library=posix \
--inconclusive \
2022-08-08 14:25:14 +02:00
--suppress=*:*/vdxf/libdxfrw/intern/make_unique.h \
../src