diff --git a/Utils/scripts/analysis.sh b/Utils/scripts/analysis.sh index a74383bfc5866d5dcf41c99233e8652c4815d2f2..1c10fb23994c5ff969a54c96c41d967f061ca102 100755 --- a/Utils/scripts/analysis.sh +++ b/Utils/scripts/analysis.sh @@ -18,11 +18,12 @@ lcov_cobertura.py scalfmm.lcov --output scalfmm-coverage.xml gcovr -r $PWD ## 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 # 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 rats -w 3 --xml ${SOURCES_TO_ANALYZE} > scalfmm-rats.xml @@ -46,6 +47,6 @@ sonar.cxx.compiler.regex=^(.*):(\\d+):\\d+: warning: (.*)\\[(.*)\\]$ sonar.cxx.compiler.reportPath=scalfmm-build.log sonar.cxx.coverage.reportPath=scalfmm-coverage.xml sonar.cxx.rats.reportPath=scalfmm-rats.xml -#sonar.cxx.cppcheck.reportPath=scalfmm-cppcheck.xml -#sonar.c.clangsa.reportPath=build/analyzer_reports/*/*.plist +sonar.cxx.cppcheck.reportPath=scalfmm-cppcheck.xml +#sonar.cxx.clangsa.reportPath=build/analyzer_reports/*/*.plist EOF