Mercurial > hg > orthanc
annotate OrthancServer/Resources/RunCppCheck.sh @ 4264:d31cba1e27ac
reducing verbosity of WebDav upload folder cleanup. avoid logs when nothing happens
author | Alain Mazy <alain@mazy.be> |
---|---|
date | Fri, 30 Oct 2020 10:48:57 +0100 |
parents | 2221051b42df |
children | 09ed936fd381 |
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 | |
15 nullPointer:../../OrthancFramework/UnitTestsSources/RestApiTests.cpp:309 | |
4203
4d42408da117
improving const-correctness in ParsedDicomFile
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4199
diff
changeset
|
16 nullPointerRedundantCheck:../../OrthancFramework/UnitTestsSources/DicomMapTests.cpp |
4223 | 17 stlFindInsert:../../OrthancFramework/Sources/DicomFormat/DicomMap.cpp:1103 |
4253 | 18 stlFindInsert:../../OrthancServer/Sources/OrthancWebDav.cpp:382 |
4206 | 19 stlFindInsert:../../OrthancServer/Sources/ServerIndex.cpp:400 |
4204 | 20 syntaxError:../../OrthancFramework/Sources/SQLite/FunctionContext.h:50 |
21 syntaxError:../../OrthancFramework/UnitTestsSources/ZipTests.cpp:129 | |
4206 | 22 syntaxError:../../OrthancServer/UnitTestsSources/UnitTestsMain.cpp:314 |
23 uninitMemberVar:../../OrthancServer/Sources/ServerJobs/StorageCommitmentScpJob.cpp:427 | |
4203
4d42408da117
improving const-correctness in ParsedDicomFile
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4199
diff
changeset
|
24 unreadVariable:../../OrthancFramework/Sources/FileStorage/StorageAccessor.cpp |
4205 | 25 unreadVariable:../../OrthancServer/Sources/OrthancRestApi/OrthancRestModalities.cpp:714 |
4207 | 26 unusedFunction |
4204 | 27 useInitializationList:../../OrthancFramework/Sources/Images/PngReader.cpp:89 |
4205 | 28 useInitializationList:../../OrthancServer/Sources/ServerJobs/DicomModalityStoreJob.cpp:285 |
4203
4d42408da117
improving const-correctness in ParsedDicomFile
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4199
diff
changeset
|
29 EOF |
4d42408da117
improving const-correctness in ParsedDicomFile
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4199
diff
changeset
|
30 |
4199 | 31 ${CPPCHECK} --enable=all --quiet --std=c++11 \ |
4203
4d42408da117
improving const-correctness in ParsedDicomFile
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4199
diff
changeset
|
32 --suppressions-list=/tmp/cppcheck-suppressions.txt \ |
4199 | 33 -DBOOST_HAS_DATE_TIME=1 \ |
34 -DBOOST_HAS_FILESYSTEM_V3=1 \ | |
35 -DBOOST_HAS_REGEX=1 \ | |
36 -DCIVETWEB_HAS_DISABLE_KEEP_ALIVE=1 \ | |
4253 | 37 -DCIVETWEB_HAS_WEBDAV_WRITING=1 \ |
4199 | 38 -DDCMTK_VERSION_NUMBER=365 \ |
39 -DMONGOOSE_USE_CALLBACKS=1 \ | |
40 -DORTHANC_BUILDING_FRAMEWORK_LIBRARY=0 \ | |
41 -DORTHANC_BUILDING_SERVER_LIBRARY=1 \ | |
42 -DORTHANC_BUILD_UNIT_TESTS=1 \ | |
43 -DORTHANC_ENABLE_BASE64=1 \ | |
44 -DORTHANC_ENABLE_CIVETWEB=1 \ | |
45 -DORTHANC_ENABLE_CURL=1 \ | |
46 -DORTHANC_ENABLE_DCMTK=1 \ | |
47 -DORTHANC_ENABLE_DCMTK_JPEG=1 \ | |
48 -DORTHANC_ENABLE_DCMTK_JPEG_LOSSLESS=1 \ | |
49 -DORTHANC_ENABLE_DCMTK_NETWORKING=1 \ | |
50 -DORTHANC_ENABLE_DCMTK_TRANSCODING=1 \ | |
51 -DORTHANC_ENABLE_JPEG=1 \ | |
52 -DORTHANC_ENABLE_LOCALE=1 \ | |
53 -DORTHANC_ENABLE_LOGGING=1 \ | |
54 -DORTHANC_ENABLE_LOGGING_STDIO=1 \ | |
55 -DORTHANC_ENABLE_LUA=1 \ | |
56 -DORTHANC_ENABLE_MD5=1 \ | |
57 -DORTHANC_ENABLE_MONGOOSE=0 \ | |
58 -DORTHANC_ENABLE_PKCS11=1 \ | |
59 -DORTHANC_ENABLE_PLUGINS=1 \ | |
60 -DORTHANC_ENABLE_PNG=1 \ | |
61 -DORTHANC_ENABLE_PUGIXML=1 \ | |
62 -DORTHANC_ENABLE_SQLITE=1 \ | |
63 -DORTHANC_ENABLE_SSL=1 \ | |
64 -DORTHANC_ENABLE_ZLIB=1 \ | |
65 -DORTHANC_SANDBOXED=0 \ | |
66 -DORTHANC_SQLITE_VERSION=3027001 \ | |
67 -DORTHANC_UNIT_TESTS_LINK_FRAMEWORK=1 \ | |
68 -DPUGIXML_VERSION=150 \ | |
69 -DUNIT_TESTS_WITH_HTTP_CONNEXIONS=1 \ | |
70 -D__BYTE_ORDER=__LITTLE_ENDIAN \ | |
71 -D__GNUC__ \ | |
72 -D__cplusplus=201103 \ | |
73 -D__linux__ \ | |
74 -UNDEBUG \ | |
75 \ | |
76 ../../OrthancFramework/Sources \ | |
77 ../../OrthancFramework/UnitTestsSources \ | |
78 ../../OrthancServer/Plugins/Engine \ | |
79 ../../OrthancServer/Plugins/Include \ | |
80 ../../OrthancServer/Sources \ | |
81 ../../OrthancServer/UnitTestsSources \ | |
82 \ | |
4207 | 83 2>&1 |