Mercurial > hg > orthanc
annotate OrthancServer/Resources/RunCppCheck.sh @ 5702:359a8adb3802 find-refactoring
cppcheck
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 12 Jul 2024 15:17:26 +0200 |
parents | 5e99cf9eebcf |
children | 12cb6b5c43f0 |
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 | |
5646
9d27024a431f
fix uninitialized variable minimumTlsVersion_ in DicomServer
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
5526
diff
changeset
|
15 nullPointer:../../OrthancFramework/UnitTestsSources/RestApiTests.cpp:316 |
9d27024a431f
fix uninitialized variable minimumTlsVersion_ in DicomServer
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
5526
diff
changeset
|
16 stlFindInsert:../../OrthancFramework/Sources/DicomFormat/DicomMap.cpp:1477 |
9d27024a431f
fix uninitialized variable minimumTlsVersion_ in DicomServer
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
5526
diff
changeset
|
17 stlFindInsert:../../OrthancFramework/Sources/RestApi/RestApiCallDocumentation.cpp:166 |
9d27024a431f
fix uninitialized variable minimumTlsVersion_ in DicomServer
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
5526
diff
changeset
|
18 stlFindInsert:../../OrthancFramework/Sources/RestApi/RestApiCallDocumentation.cpp:74 |
9d27024a431f
fix uninitialized variable minimumTlsVersion_ in DicomServer
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
5526
diff
changeset
|
19 stlFindInsert:../../OrthancServer/Sources/Database/StatelessDatabaseOperations.cpp:374 |
5702 | 20 stlFindInsert:../../OrthancServer/Sources/OrthancWebDav.cpp:480 |
5646
9d27024a431f
fix uninitialized variable minimumTlsVersion_ in DicomServer
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
5526
diff
changeset
|
21 stlFindInsert:../../OrthancServer/Sources/ServerJobs/MergeStudyJob.cpp:41 |
9d27024a431f
fix uninitialized variable minimumTlsVersion_ in DicomServer
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
5526
diff
changeset
|
22 stlFindInsert:../../OrthancServer/Sources/ServerJobs/SplitStudyJob.cpp:191 |
9d27024a431f
fix uninitialized variable minimumTlsVersion_ in DicomServer
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
5526
diff
changeset
|
23 stlFindInsert:../../OrthancServer/Sources/ServerJobs/ResourceModificationJob.cpp:361 |
9d27024a431f
fix uninitialized variable minimumTlsVersion_ in DicomServer
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
5526
diff
changeset
|
24 syntaxError:../../OrthancFramework/Sources/SQLite/FunctionContext.h:53 |
9d27024a431f
fix uninitialized variable minimumTlsVersion_ in DicomServer
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
5526
diff
changeset
|
25 syntaxError:../../OrthancFramework/UnitTestsSources/DicomMapTests.cpp:74 |
9d27024a431f
fix uninitialized variable minimumTlsVersion_ in DicomServer
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
5526
diff
changeset
|
26 syntaxError:../../OrthancFramework/UnitTestsSources/ZipTests.cpp:133 |
5653 | 27 syntaxError:../../OrthancServer/UnitTestsSources/UnitTestsMain.cpp:322 |
5646
9d27024a431f
fix uninitialized variable minimumTlsVersion_ in DicomServer
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
5526
diff
changeset
|
28 uninitMemberVar:../../OrthancServer/Sources/ServerJobs/StorageCommitmentScpJob.cpp:417 |
4203
4d42408da117
improving const-correctness in ParsedDicomFile
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4199
diff
changeset
|
29 unreadVariable:../../OrthancFramework/Sources/FileStorage/StorageAccessor.cpp |
5646
9d27024a431f
fix uninitialized variable minimumTlsVersion_ in DicomServer
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
5526
diff
changeset
|
30 unreadVariable:../../OrthancServer/Sources/OrthancRestApi/OrthancRestModalities.cpp:1123 |
4207 | 31 unusedFunction |
5646
9d27024a431f
fix uninitialized variable minimumTlsVersion_ in DicomServer
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
5526
diff
changeset
|
32 useInitializationList:../../OrthancFramework/Sources/Images/PngReader.cpp:91 |
9d27024a431f
fix uninitialized variable minimumTlsVersion_ in DicomServer
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
5526
diff
changeset
|
33 useInitializationList:../../OrthancFramework/Sources/Images/PngWriter.cpp:99 |
9d27024a431f
fix uninitialized variable minimumTlsVersion_ in DicomServer
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
5526
diff
changeset
|
34 useInitializationList:../../OrthancServer/Sources/ServerJobs/DicomModalityStoreJob.cpp:275 |
9d27024a431f
fix uninitialized variable minimumTlsVersion_ in DicomServer
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
5526
diff
changeset
|
35 assertWithSideEffect:../../OrthancServer/Plugins/Engine/OrthancPluginDatabase.cpp:277 |
9d27024a431f
fix uninitialized variable minimumTlsVersion_ in DicomServer
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
5526
diff
changeset
|
36 assertWithSideEffect:../../OrthancServer/Plugins/Engine/OrthancPluginDatabase.cpp:1026 |
5702 | 37 assertWithSideEffect:../../OrthancServer/Sources/Database/Compatibility/DatabaseLookup.cpp:292 |
38 assertWithSideEffect:../../OrthancServer/Sources/Database/Compatibility/DatabaseLookup.cpp:391 | |
5646
9d27024a431f
fix uninitialized variable minimumTlsVersion_ in DicomServer
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
5526
diff
changeset
|
39 assertWithSideEffect:../../OrthancServer/Sources/Database/StatelessDatabaseOperations.cpp:3663 |
9d27024a431f
fix uninitialized variable minimumTlsVersion_ in DicomServer
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
5526
diff
changeset
|
40 assertWithSideEffect:../../OrthancServer/Sources/ServerJobs/ResourceModificationJob.cpp:286 |
9d27024a431f
fix uninitialized variable minimumTlsVersion_ in DicomServer
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
5526
diff
changeset
|
41 assertWithSideEffect:../../OrthancFramework/Sources/DicomNetworking/Internals/CommandDispatcher.cpp:454 |
4203
4d42408da117
improving const-correctness in ParsedDicomFile
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4199
diff
changeset
|
42 EOF |
4d42408da117
improving const-correctness in ParsedDicomFile
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4199
diff
changeset
|
43 |
4199 | 44 ${CPPCHECK} --enable=all --quiet --std=c++11 \ |
4203
4d42408da117
improving const-correctness in ParsedDicomFile
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4199
diff
changeset
|
45 --suppressions-list=/tmp/cppcheck-suppressions.txt \ |
4199 | 46 -DBOOST_HAS_DATE_TIME=1 \ |
47 -DBOOST_HAS_FILESYSTEM_V3=1 \ | |
48 -DBOOST_HAS_REGEX=1 \ | |
49 -DCIVETWEB_HAS_DISABLE_KEEP_ALIVE=1 \ | |
4253 | 50 -DCIVETWEB_HAS_WEBDAV_WRITING=1 \ |
4199 | 51 -DDCMTK_VERSION_NUMBER=365 \ |
4386 | 52 -DHAVE_MALLOPT=1 \ |
5159
f5907aecbaed
conditional usage of malloc_trim
Alain Mazy <am@osimis.io>
parents:
5158
diff
changeset
|
53 -DHAVE_MALLOC_TRIM=1 \ |
4199 | 54 -DMONGOOSE_USE_CALLBACKS=1 \ |
4398
38c22715bb56
fix RunCppCheck.sh
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4386
diff
changeset
|
55 -DJSONCPP_VERSION_MAJOR=1 \ |
38c22715bb56
fix RunCppCheck.sh
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4386
diff
changeset
|
56 -DJSONCPP_VERSION_MINOR=0 \ |
4199 | 57 -DORTHANC_BUILDING_FRAMEWORK_LIBRARY=0 \ |
58 -DORTHANC_BUILDING_SERVER_LIBRARY=1 \ | |
59 -DORTHANC_BUILD_UNIT_TESTS=1 \ | |
60 -DORTHANC_ENABLE_BASE64=1 \ | |
61 -DORTHANC_ENABLE_CIVETWEB=1 \ | |
62 -DORTHANC_ENABLE_CURL=1 \ | |
63 -DORTHANC_ENABLE_DCMTK=1 \ | |
64 -DORTHANC_ENABLE_DCMTK_JPEG=1 \ | |
65 -DORTHANC_ENABLE_DCMTK_JPEG_LOSSLESS=1 \ | |
66 -DORTHANC_ENABLE_DCMTK_NETWORKING=1 \ | |
67 -DORTHANC_ENABLE_DCMTK_TRANSCODING=1 \ | |
68 -DORTHANC_ENABLE_JPEG=1 \ | |
69 -DORTHANC_ENABLE_LOCALE=1 \ | |
70 -DORTHANC_ENABLE_LOGGING=1 \ | |
71 -DORTHANC_ENABLE_LOGGING_STDIO=1 \ | |
72 -DORTHANC_ENABLE_LUA=1 \ | |
73 -DORTHANC_ENABLE_MD5=1 \ | |
74 -DORTHANC_ENABLE_MONGOOSE=0 \ | |
75 -DORTHANC_ENABLE_PKCS11=1 \ | |
76 -DORTHANC_ENABLE_PLUGINS=1 \ | |
77 -DORTHANC_ENABLE_PNG=1 \ | |
78 -DORTHANC_ENABLE_PUGIXML=1 \ | |
79 -DORTHANC_ENABLE_SQLITE=1 \ | |
80 -DORTHANC_ENABLE_SSL=1 \ | |
81 -DORTHANC_ENABLE_ZLIB=1 \ | |
82 -DORTHANC_SANDBOXED=0 \ | |
83 -DORTHANC_SQLITE_VERSION=3027001 \ | |
84 -DORTHANC_UNIT_TESTS_LINK_FRAMEWORK=1 \ | |
85 -DPUGIXML_VERSION=150 \ | |
86 -DUNIT_TESTS_WITH_HTTP_CONNEXIONS=1 \ | |
87 -D__BYTE_ORDER=__LITTLE_ENDIAN \ | |
88 -D__GNUC__ \ | |
89 -D__cplusplus=201103 \ | |
90 -D__linux__ \ | |
91 -UNDEBUG \ | |
5280 | 92 -DHAS_ORTHANC_EXCEPTION=1 \ |
4199 | 93 \ |
94 ../../OrthancFramework/Sources \ | |
95 ../../OrthancFramework/UnitTestsSources \ | |
96 ../../OrthancServer/Plugins/Engine \ | |
97 ../../OrthancServer/Plugins/Include \ | |
98 ../../OrthancServer/Sources \ | |
99 ../../OrthancServer/UnitTestsSources \ | |
5280 | 100 ../../OrthancServer/Plugins/Samples/Common \ |
101 ../../OrthancServer/Plugins/Samples/ConnectivityChecks \ | |
102 ../../OrthancServer/Plugins/Samples/DelayedDeletion \ | |
103 ../../OrthancServer/Plugins/Samples/Housekeeper \ | |
104 ../../OrthancServer/Plugins/Samples/ModalityWorklists \ | |
105 ../../OrthancServer/Plugins/Samples/MultitenantDicom \ | |
4199 | 106 \ |
4207 | 107 2>&1 |