Mercurial > hg > orthanc
annotate OrthancServer/Resources/RunCppCheck.sh @ 4991:3cdda1cec537
fix
author | Alain Mazy <am@osimis.io> |
---|---|
date | Sun, 01 May 2022 12:38:52 +0200 |
parents | c767035fff77 |
children | 2f30aa99c2db |
rev | line source |
---|---|
4199 | 1 #!/bin/bash |
2 | |
3 set -ex | |
4 | |
5 CPPCHECK=cppcheck | |
6 | |
7 if [ $# -ge 1 ]; then | |
8 CPPCHECK=$1 | |
9 fi | |
10 | |
4203
4d42408da117
improving const-correctness in ParsedDicomFile
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4199
diff
changeset
|
11 cat <<EOF > /tmp/cppcheck-suppressions.txt |
4d42408da117
improving const-correctness in ParsedDicomFile
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4199
diff
changeset
|
12 constParameter:../../OrthancFramework/Sources/DicomParsing/FromDcmtkBridge.cpp |
4204 | 13 knownArgument:../../OrthancFramework/UnitTestsSources/ImageTests.cpp |
14 knownConditionTrueFalse:../../OrthancServer/Plugins/Engine/OrthancPlugins.cpp | |
4858 | 15 nullPointer:../../OrthancFramework/UnitTestsSources/RestApiTests.cpp:321 |
4983
63bf8fb86dae
removed cppcheck warning
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4981
diff
changeset
|
16 stlFindInsert:../../OrthancFramework/Sources/DicomFormat/DicomMap.cpp:1475 |
4858 | 17 stlFindInsert:../../OrthancFramework/Sources/RestApi/RestApiCallDocumentation.cpp:165 |
18 stlFindInsert:../../OrthancFramework/Sources/RestApi/RestApiCallDocumentation.cpp:73 | |
4981 | 19 stlFindInsert:../../OrthancServer/Sources/Database/StatelessDatabaseOperations.cpp:372 |
20 stlFindInsert:../../OrthancServer/Sources/OrthancWebDav.cpp:377 | |
4895
8f1f76b73499
fix RunCppCheck.sh for openssl 3.x
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4889
diff
changeset
|
21 stlFindInsert:../../OrthancServer/Sources/ServerJobs/MergeStudyJob.cpp:40 |
8f1f76b73499
fix RunCppCheck.sh for openssl 3.x
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4889
diff
changeset
|
22 stlFindInsert:../../OrthancServer/Sources/ServerJobs/SplitStudyJob.cpp:190 |
4858 | 23 syntaxError:../../OrthancFramework/Sources/SQLite/FunctionContext.h:52 |
4981 | 24 syntaxError:../../OrthancFramework/UnitTestsSources/DicomMapTests.cpp:72 |
4858 | 25 syntaxError:../../OrthancFramework/UnitTestsSources/ZipTests.cpp:132 |
4895
8f1f76b73499
fix RunCppCheck.sh for openssl 3.x
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4889
diff
changeset
|
26 syntaxError:../../OrthancServer/UnitTestsSources/UnitTestsMain.cpp:310 |
8f1f76b73499
fix RunCppCheck.sh for openssl 3.x
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4889
diff
changeset
|
27 uninitMemberVar:../../OrthancServer/Sources/ServerJobs/StorageCommitmentScpJob.cpp:416 |
4203
4d42408da117
improving const-correctness in ParsedDicomFile
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4199
diff
changeset
|
28 unreadVariable:../../OrthancFramework/Sources/FileStorage/StorageAccessor.cpp |
4895
8f1f76b73499
fix RunCppCheck.sh for openssl 3.x
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4889
diff
changeset
|
29 unreadVariable:../../OrthancServer/Sources/OrthancRestApi/OrthancRestModalities.cpp:1115 |
4207 | 30 unusedFunction |
4858 | 31 useInitializationList:../../OrthancFramework/Sources/Images/PngReader.cpp:90 |
32 useInitializationList:../../OrthancFramework/Sources/Images/PngWriter.cpp:98 | |
4895
8f1f76b73499
fix RunCppCheck.sh for openssl 3.x
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4889
diff
changeset
|
33 useInitializationList:../../OrthancServer/Sources/ServerJobs/DicomModalityStoreJob.cpp:274 |
4985 | 34 assertWithSideEffect:../../OrthancServer/Plugins/Engine/OrthancPluginDatabase.cpp:276 |
35 assertWithSideEffect:../../OrthancServer/Plugins/Engine/OrthancPluginDatabase.cpp:1018 | |
36 assertWithSideEffect:../../OrthancServer/Sources/Database/Compatibility/DatabaseLookup.cpp:289 | |
37 assertWithSideEffect:../../OrthancServer/Sources/Database/Compatibility/DatabaseLookup.cpp:388 | |
38 assertWithSideEffect:../../OrthancServer/Sources/Database/StatelessDatabaseOperations.cpp:3381 | |
39 assertWithSideEffect:../../OrthancServer/Sources/ServerJobs/ResourceModificationJob.cpp:241 | |
4203
4d42408da117
improving const-correctness in ParsedDicomFile
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4199
diff
changeset
|
40 EOF |
4d42408da117
improving const-correctness in ParsedDicomFile
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4199
diff
changeset
|
41 |
4199 | 42 ${CPPCHECK} --enable=all --quiet --std=c++11 \ |
4203
4d42408da117
improving const-correctness in ParsedDicomFile
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4199
diff
changeset
|
43 --suppressions-list=/tmp/cppcheck-suppressions.txt \ |
4199 | 44 -DBOOST_HAS_DATE_TIME=1 \ |
45 -DBOOST_HAS_FILESYSTEM_V3=1 \ | |
46 -DBOOST_HAS_REGEX=1 \ | |
47 -DCIVETWEB_HAS_DISABLE_KEEP_ALIVE=1 \ | |
4253 | 48 -DCIVETWEB_HAS_WEBDAV_WRITING=1 \ |
4199 | 49 -DDCMTK_VERSION_NUMBER=365 \ |
4386 | 50 -DHAVE_MALLOPT=1 \ |
4199 | 51 -DMONGOOSE_USE_CALLBACKS=1 \ |
4398
38c22715bb56
fix RunCppCheck.sh
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4386
diff
changeset
|
52 -DJSONCPP_VERSION_MAJOR=1 \ |
38c22715bb56
fix RunCppCheck.sh
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4386
diff
changeset
|
53 -DJSONCPP_VERSION_MINOR=0 \ |
4199 | 54 -DORTHANC_BUILDING_FRAMEWORK_LIBRARY=0 \ |
55 -DORTHANC_BUILDING_SERVER_LIBRARY=1 \ | |
56 -DORTHANC_BUILD_UNIT_TESTS=1 \ | |
57 -DORTHANC_ENABLE_BASE64=1 \ | |
58 -DORTHANC_ENABLE_CIVETWEB=1 \ | |
59 -DORTHANC_ENABLE_CURL=1 \ | |
60 -DORTHANC_ENABLE_DCMTK=1 \ | |
61 -DORTHANC_ENABLE_DCMTK_JPEG=1 \ | |
62 -DORTHANC_ENABLE_DCMTK_JPEG_LOSSLESS=1 \ | |
63 -DORTHANC_ENABLE_DCMTK_NETWORKING=1 \ | |
64 -DORTHANC_ENABLE_DCMTK_TRANSCODING=1 \ | |
65 -DORTHANC_ENABLE_JPEG=1 \ | |
66 -DORTHANC_ENABLE_LOCALE=1 \ | |
67 -DORTHANC_ENABLE_LOGGING=1 \ | |
68 -DORTHANC_ENABLE_LOGGING_STDIO=1 \ | |
69 -DORTHANC_ENABLE_LUA=1 \ | |
70 -DORTHANC_ENABLE_MD5=1 \ | |
71 -DORTHANC_ENABLE_MONGOOSE=0 \ | |
72 -DORTHANC_ENABLE_PKCS11=1 \ | |
73 -DORTHANC_ENABLE_PLUGINS=1 \ | |
74 -DORTHANC_ENABLE_PNG=1 \ | |
75 -DORTHANC_ENABLE_PUGIXML=1 \ | |
76 -DORTHANC_ENABLE_SQLITE=1 \ | |
77 -DORTHANC_ENABLE_SSL=1 \ | |
78 -DORTHANC_ENABLE_ZLIB=1 \ | |
79 -DORTHANC_SANDBOXED=0 \ | |
80 -DORTHANC_SQLITE_VERSION=3027001 \ | |
81 -DORTHANC_UNIT_TESTS_LINK_FRAMEWORK=1 \ | |
82 -DPUGIXML_VERSION=150 \ | |
83 -DUNIT_TESTS_WITH_HTTP_CONNEXIONS=1 \ | |
84 -D__BYTE_ORDER=__LITTLE_ENDIAN \ | |
85 -D__GNUC__ \ | |
86 -D__cplusplus=201103 \ | |
87 -D__linux__ \ | |
88 -UNDEBUG \ | |
89 \ | |
90 ../../OrthancFramework/Sources \ | |
91 ../../OrthancFramework/UnitTestsSources \ | |
92 ../../OrthancServer/Plugins/Engine \ | |
93 ../../OrthancServer/Plugins/Include \ | |
94 ../../OrthancServer/Sources \ | |
95 ../../OrthancServer/UnitTestsSources \ | |
96 \ | |
4207 | 97 2>&1 |