Mercurial > hg > orthanc
annotate OrthancServer/Resources/RunCppCheck.sh @ 5284:56cd3444a2d8
NormalizeIdentifier: suggestion for future implementations
author | Alain Mazy <am@osimis.io> |
---|---|
date | Mon, 24 Apr 2023 18:04:07 +0200 |
parents | 49477780e25a |
children | 84150c5227f8 |
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 | |
5001
5a5918f2a199
fix RunCppCheck.sh
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4994
diff
changeset
|
15 nullPointer:../../OrthancFramework/UnitTestsSources/RestApiTests.cpp:322 |
5277 | 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 | |
5277 | 19 stlFindInsert:../../OrthancServer/Sources/Database/StatelessDatabaseOperations.cpp:373 |
4981 | 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 |
5158 | 23 stlFindInsert:../../OrthancServer/Sources/ServerJobs/ResourceModificationJob.cpp:334 |
4858 | 24 syntaxError:../../OrthancFramework/Sources/SQLite/FunctionContext.h:52 |
4981 | 25 syntaxError:../../OrthancFramework/UnitTestsSources/DicomMapTests.cpp:72 |
4858 | 26 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
|
27 syntaxError:../../OrthancServer/UnitTestsSources/UnitTestsMain.cpp:310 |
8f1f76b73499
fix RunCppCheck.sh for openssl 3.x
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4889
diff
changeset
|
28 uninitMemberVar:../../OrthancServer/Sources/ServerJobs/StorageCommitmentScpJob.cpp:416 |
4203
4d42408da117
improving const-correctness in ParsedDicomFile
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4199
diff
changeset
|
29 unreadVariable:../../OrthancFramework/Sources/FileStorage/StorageAccessor.cpp |
5132 | 30 unreadVariable:../../OrthancServer/Sources/OrthancRestApi/OrthancRestModalities.cpp:1118 |
4207 | 31 unusedFunction |
4858 | 32 useInitializationList:../../OrthancFramework/Sources/Images/PngReader.cpp:90 |
33 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
|
34 useInitializationList:../../OrthancServer/Sources/ServerJobs/DicomModalityStoreJob.cpp:274 |
4985 | 35 assertWithSideEffect:../../OrthancServer/Plugins/Engine/OrthancPluginDatabase.cpp:276 |
5277 | 36 assertWithSideEffect:../../OrthancServer/Plugins/Engine/OrthancPluginDatabase.cpp:1025 |
4985 | 37 assertWithSideEffect:../../OrthancServer/Sources/Database/Compatibility/DatabaseLookup.cpp:289 |
38 assertWithSideEffect:../../OrthancServer/Sources/Database/Compatibility/DatabaseLookup.cpp:388 | |
5277 | 39 assertWithSideEffect:../../OrthancServer/Sources/Database/StatelessDatabaseOperations.cpp:3526 |
5158 | 40 assertWithSideEffect:../../OrthancServer/Sources/ServerJobs/ResourceModificationJob.cpp:272 |
4203
4d42408da117
improving const-correctness in ParsedDicomFile
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4199
diff
changeset
|
41 EOF |
4d42408da117
improving const-correctness in ParsedDicomFile
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4199
diff
changeset
|
42 |
4199 | 43 ${CPPCHECK} --enable=all --quiet --std=c++11 \ |
4203
4d42408da117
improving const-correctness in ParsedDicomFile
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4199
diff
changeset
|
44 --suppressions-list=/tmp/cppcheck-suppressions.txt \ |
4199 | 45 -DBOOST_HAS_DATE_TIME=1 \ |
46 -DBOOST_HAS_FILESYSTEM_V3=1 \ | |
47 -DBOOST_HAS_REGEX=1 \ | |
48 -DCIVETWEB_HAS_DISABLE_KEEP_ALIVE=1 \ | |
4253 | 49 -DCIVETWEB_HAS_WEBDAV_WRITING=1 \ |
4199 | 50 -DDCMTK_VERSION_NUMBER=365 \ |
4386 | 51 -DHAVE_MALLOPT=1 \ |
5159
f5907aecbaed
conditional usage of malloc_trim
Alain Mazy <am@osimis.io>
parents:
5158
diff
changeset
|
52 -DHAVE_MALLOC_TRIM=1 \ |
4199 | 53 -DMONGOOSE_USE_CALLBACKS=1 \ |
4398
38c22715bb56
fix RunCppCheck.sh
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4386
diff
changeset
|
54 -DJSONCPP_VERSION_MAJOR=1 \ |
38c22715bb56
fix RunCppCheck.sh
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4386
diff
changeset
|
55 -DJSONCPP_VERSION_MINOR=0 \ |
4199 | 56 -DORTHANC_BUILDING_FRAMEWORK_LIBRARY=0 \ |
57 -DORTHANC_BUILDING_SERVER_LIBRARY=1 \ | |
58 -DORTHANC_BUILD_UNIT_TESTS=1 \ | |
59 -DORTHANC_ENABLE_BASE64=1 \ | |
60 -DORTHANC_ENABLE_CIVETWEB=1 \ | |
61 -DORTHANC_ENABLE_CURL=1 \ | |
62 -DORTHANC_ENABLE_DCMTK=1 \ | |
63 -DORTHANC_ENABLE_DCMTK_JPEG=1 \ | |
64 -DORTHANC_ENABLE_DCMTK_JPEG_LOSSLESS=1 \ | |
65 -DORTHANC_ENABLE_DCMTK_NETWORKING=1 \ | |
66 -DORTHANC_ENABLE_DCMTK_TRANSCODING=1 \ | |
67 -DORTHANC_ENABLE_JPEG=1 \ | |
68 -DORTHANC_ENABLE_LOCALE=1 \ | |
69 -DORTHANC_ENABLE_LOGGING=1 \ | |
70 -DORTHANC_ENABLE_LOGGING_STDIO=1 \ | |
71 -DORTHANC_ENABLE_LUA=1 \ | |
72 -DORTHANC_ENABLE_MD5=1 \ | |
73 -DORTHANC_ENABLE_MONGOOSE=0 \ | |
74 -DORTHANC_ENABLE_PKCS11=1 \ | |
75 -DORTHANC_ENABLE_PLUGINS=1 \ | |
76 -DORTHANC_ENABLE_PNG=1 \ | |
77 -DORTHANC_ENABLE_PUGIXML=1 \ | |
78 -DORTHANC_ENABLE_SQLITE=1 \ | |
79 -DORTHANC_ENABLE_SSL=1 \ | |
80 -DORTHANC_ENABLE_ZLIB=1 \ | |
81 -DORTHANC_SANDBOXED=0 \ | |
82 -DORTHANC_SQLITE_VERSION=3027001 \ | |
83 -DORTHANC_UNIT_TESTS_LINK_FRAMEWORK=1 \ | |
84 -DPUGIXML_VERSION=150 \ | |
85 -DUNIT_TESTS_WITH_HTTP_CONNEXIONS=1 \ | |
86 -D__BYTE_ORDER=__LITTLE_ENDIAN \ | |
87 -D__GNUC__ \ | |
88 -D__cplusplus=201103 \ | |
89 -D__linux__ \ | |
90 -UNDEBUG \ | |
5280 | 91 -DHAS_ORTHANC_EXCEPTION=1 \ |
4199 | 92 \ |
93 ../../OrthancFramework/Sources \ | |
94 ../../OrthancFramework/UnitTestsSources \ | |
95 ../../OrthancServer/Plugins/Engine \ | |
96 ../../OrthancServer/Plugins/Include \ | |
97 ../../OrthancServer/Sources \ | |
98 ../../OrthancServer/UnitTestsSources \ | |
5280 | 99 ../../OrthancServer/Plugins/Samples/Common \ |
100 ../../OrthancServer/Plugins/Samples/ConnectivityChecks \ | |
101 ../../OrthancServer/Plugins/Samples/DelayedDeletion \ | |
102 ../../OrthancServer/Plugins/Samples/Housekeeper \ | |
103 ../../OrthancServer/Plugins/Samples/ModalityWorklists \ | |
104 ../../OrthancServer/Plugins/Samples/MultitenantDicom \ | |
4199 | 105 \ |
4207 | 106 2>&1 |