Commit 7fff6f00 authored by PRUVOST Florent's avatar PRUVOST Florent

add cppcheck and fix report names

parent c0bf67ee
Pipeline #23388 canceled with stages
in 38 seconds
......@@ -3,9 +3,9 @@
export CPPCHECK_INCLUDES="-Ibuild/src/libpampa -Isrc/libpampa -Isrc/pampa-remesh -Isrc/samples/C/include -Isrc/remeshers/gmsh -Isrc/remeshers/tetgen -Isrc/remeshers/common -Isrc/remeshers/mmg3d/libpampa-mmg3d4 -Isrc/remeshers/mmg3d/libpampa-mmg3d"
export SOURCES_TO_ANALYZE="src"
cppcheck -v -f --max-configs=1 --language=c --platform=unix64 --enable=all --xml --xml-version=2 --suppress=missingIncludeSystem ${CPPCHECK_INCLUDES} ${SOURCES_TO_ANALYZE} 2> scotch-cppcheck.xml
cppcheck -v -f --max-configs=1 --language=c --platform=unix64 --enable=all --xml --xml-version=2 --suppress=missingIncludeSystem ${CPPCHECK_INCLUDES} ${SOURCES_TO_ANALYZE} 2> pampa-cppcheck.xml
rats -w 3 --xml ${SOURCES_TO_ANALYZE} > scotch-rats.xml
rats -w 3 --xml ${SOURCES_TO_ANALYZE} > pampa-rats.xml
cat > sonar-project.properties << EOF
sonar.host.url=https://sonarqube.bordeaux.inria.fr/sonarqube
......@@ -27,7 +27,7 @@ sonar.c.compiler.parser=GCC
sonar.c.compiler.regex=^(.*):(\\\d+):\\\d+: warning: (.*)\\\[(.*)\\\]$
sonar.c.compiler.reportPath=pampa-build.log
sonar.c.coverage.reportPath=pampa-coverage.xml
#sonar.c.cppcheck.reportPath=pampa-cppcheck.xml
sonar.c.cppcheck.reportPath=pampa-cppcheck.xml
sonar.c.rats.reportPath=pampa-rats.xml
sonar.c.clangsa.reportPath=analyzer_reports/*/*.plist
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