@@ -26,31 +26,17 @@ export NV_HOME=${REPO_HOME}/scripts/linux/nv
2626cppcheck_folder=" ${REPO_HOME} /reports/cppcheck"
2727mkdir -p " $cppcheck_folder "
2828
29- cppcheck --xml --xml-version=2 --enable=all --inconclusive -I olp-cpp-sdk-authentication/include/olp/authentication/ olp-cpp-sdk-authentication/src 2> cppcheck.xml
30- cp cppcheck.xml " $cppcheck_folder /olp-cpp-sdk-authentication-cppcheck.xml"
31-
32- cppcheck --xml --xml-version=2 --enable=all --inconclusive -I olp-cpp-sdk-dataservice-read/include/olp/dataservice/read/ \
33- -I olp-cpp-sdk-dataservice-read/include/olp/dataservice/read/model/ olp-cpp-sdk-dataservice-read/src 2> cppcheck.xml
34- cp cppcheck.xml " $cppcheck_folder /olp-cpp-sdk-dataservice-read-cppcheck.xml"
35-
36- cppcheck --xml --xml-version=2 --enable=all --inconclusive -I olp-cpp-sdk-dataservice-write/include/olp/dataservice/write/ \
37- -I olp-cpp-sdk-dataservice-write/include/olp/dataservice/write/model/ \
38- -I olp-cpp-sdk-dataservice-write/include/olp/dataservice/write/generated/model/ olp-cpp-sdk-dataservice-write/src 2> cppcheck.xml
39- cp cppcheck.xml " $cppcheck_folder /olp-cpp-sdk-dataservice-write-cppcheck.xml"
40-
41- cppcheck --xml --xml-version=2 --enable=all --inconclusive -I olp-cpp-sdk-core/include/olp/core/client/ \
42- -I olp-cpp-sdk-core/include/olp/core/context/ \
43- -I olp-cpp-sdk-core/include/olp/core/cache/ \
44- -I olp-cpp-sdk-core/include/olp/core/geo/ \
45- -I olp-cpp-sdk-core/include/olp/core/http/ \
46- -I olp-cpp-sdk-core/include/olp/core/logging/ \
47- -I olp-cpp-sdk-core/include/olp/core/math/ \
48- -I olp-cpp-sdk-core/include/olp/core/generated/parser/ \
49- -I olp-cpp-sdk-core/include/olp/core/generated/serializer/ \
50- -I olp-cpp-sdk-core/include/olp/core/porting/ \
51- -I olp-cpp-sdk-core/include/olp/core/thread/ \
52- -I olp-cpp-sdk-core/include/olp/core/utils/ olp-cpp-sdk-core/src 2> cppcheck.xml
53- cp cppcheck.xml " $cppcheck_folder /olp-cpp-sdk-core-cppcheck.xml"
29+ cppcheck --xml --xml-version=2 --enable=all --inconclusive \
30+ -I olp-cpp-sdk-core/include \
31+ -I olp-cpp-sdk-authentication/include \
32+ -I olp-cpp-sdk-dataservice-read/include \
33+ -I olp-cpp-sdk-dataservice-write/include \
34+ olp-cpp-sdk-core/src \
35+ olp-cpp-sdk-authentication/src \
36+ olp-cpp-sdk-dataservice-read/src \
37+ olp-cpp-sdk-dataservice-write/src \
38+ 2> cppcheck.xml
39+ mv cppcheck.xml " $cppcheck_folder /cppcheck.xml"
5440
5541# Set needed properties for Valgrind
5642echo " sonar.host.url=${SONAR_HOST} " >> ${NV_HOME} /sonar-project.propertiesValgrind
0 commit comments