2016-08-16 16:04:33 +02:00
|
|
|
#!/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"
|
2016-08-16 16:04:33 +02:00
|
|
|
$CPPCHECK \
|
|
|
|
-j4 -f -q \
|
2017-07-06 11:58:26 +02:00
|
|
|
-UDRW_DBG \
|
2016-08-16 16:04:33 +02:00
|
|
|
-U__INTEL_COMPILER_UPDATE \
|
|
|
|
--template '{file}:{line}:{message}:{id}' \
|
|
|
|
--inline-suppr \
|
2017-07-06 11:58:26 +02:00
|
|
|
--platform=unix64 \
|
2022-08-08 14:25:14 +02:00
|
|
|
--std=c++17 \
|
2016-08-16 16:04:33 +02:00
|
|
|
--enable=all \
|
2022-08-08 14:25:14 +02:00
|
|
|
--library=qt \
|
|
|
|
--library=std \
|
|
|
|
--library=posix \
|
2016-08-16 16:04:33 +02:00
|
|
|
--inconclusive \
|
2022-08-08 14:25:14 +02:00
|
|
|
--suppress=*:*/vdxf/libdxfrw/intern/make_unique.h \
|
2022-08-30 13:42:44 +02:00
|
|
|
--inconclusive \
|
|
|
|
--suppress=*:*/qmuparser/make_unique.h \
|
2016-08-16 16:04:33 +02:00
|
|
|
../src
|