Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
ScalFMM
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
5
Issues
5
List
Boards
Labels
Service Desk
Milestones
Operations
Operations
Incidents
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
solverstack
ScalFMM
Commits
98e23d75
Commit
98e23d75
authored
Feb 16, 2018
by
COULAUD Olivier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update cppcheck
parent
9ed7fceb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
Utils/scripts/analysis.sh
Utils/scripts/analysis.sh
+5
-4
No files found.
Utils/scripts/analysis.sh
View file @
98e23d75
...
@@ -18,11 +18,12 @@ lcov_cobertura.py scalfmm.lcov --output scalfmm-coverage.xml
...
@@ -18,11 +18,12 @@ lcov_cobertura.py scalfmm.lcov --output scalfmm-coverage.xml
gcovr
-r
$PWD
gcovr
-r
$PWD
## filter sources:
## filter sources:
export
SOURCES_TO_ANALYZE
=
"Build/Src/ScalFmmConfig.h Examples Src Tests UTests"
#export SOURCES_TO_ANALYZE="Build/Src/ScalFmmConfig.h Examples Src Tests UTests"
export
SOURCES_TO_ANALYZE
=
"Src Examples"
# run cppcheck analysis
# run cppcheck analysis
# commented for now because too long
# commented for now because too long
#cppcheck -v -f --language=c++ --platform=unix64 --enable=all --xml --xml-version=2 --suppress=missingIncludeSystem
-IBuild/Src ${SOURCES_TO_ANALYZE} 2> scalfmm-cppcheck.xml
cppcheck
-v
-f
--language
=
c++
--platform
=
unix64
--enable
=
all
--xml
--xml-version
=
2
--suppress
=
missingIncludeSystem
-ISrc
-IBuild
/Src
${
SOURCES_TO_ANALYZE
}
2> scalfmm-cppcheck.xml
# run rats analysis
# run rats analysis
rats
-w
3
--xml
${
SOURCES_TO_ANALYZE
}
>
scalfmm-rats.xml
rats
-w
3
--xml
${
SOURCES_TO_ANALYZE
}
>
scalfmm-rats.xml
...
@@ -46,6 +47,6 @@ sonar.cxx.compiler.regex=^(.*):(\\d+):\\d+: warning: (.*)\\[(.*)\\]$
...
@@ -46,6 +47,6 @@ sonar.cxx.compiler.regex=^(.*):(\\d+):\\d+: warning: (.*)\\[(.*)\\]$
sonar.cxx.compiler.reportPath=scalfmm-build.log
sonar.cxx.compiler.reportPath=scalfmm-build.log
sonar.cxx.coverage.reportPath=scalfmm-coverage.xml
sonar.cxx.coverage.reportPath=scalfmm-coverage.xml
sonar.cxx.rats.reportPath=scalfmm-rats.xml
sonar.cxx.rats.reportPath=scalfmm-rats.xml
#
sonar.cxx.cppcheck.reportPath=scalfmm-cppcheck.xml
sonar.cxx.cppcheck.reportPath=scalfmm-cppcheck.xml
#sonar.c.clangsa.reportPath=build/analyzer_reports/*/*.plist
#sonar.c
xx
.clangsa.reportPath=build/analyzer_reports/*/*.plist
EOF
EOF
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment