Commit 98e23d75 authored by COULAUD Olivier's avatar COULAUD Olivier

Update cppcheck

parent 9ed7fceb
...@@ -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.cxx.clangsa.reportPath=build/analyzer_reports/*/*.plist
EOF EOF
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment