Skip to content

Commit

Permalink
Coverage: configure Sonarcube exclusions
Browse files Browse the repository at this point in the history
Fix sonarcube configuration to correctly exclude everything that is not
run by the CI and therefore cannot have any coverage data.
Also exclude a bunch of auxiliary files that are part of the build
system or generic helper tools.

Signed-off-by: Alexander Krimm <[email protected]>
  • Loading branch information
wirew0rm committed Nov 1, 2024
1 parent 877bf08 commit 6dc7fd5
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions sonar-project.properties
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,10 @@ sonar.cfamily.cpp23.enabled=true
#sonar.sourceEncoding=UTF-8

sonar.coverageReportPaths=../build/coverage.xml
sonar.test=.
sonar.sources=.
sonar.tests=.
# note: only add benchmarks starting with bm_ to be able to exclude bm-nosonar_ files
sonar.exclusions=**/third_party/**/*,**/test/**/*,**/benchmarks/*
sonar.test.inclusions=**/test/**/*,**/benchmarks/bm_*
sonar.exclusions=**/third_party/**/*,**/test/**/*
sonar.coverage.exclusions=devtools/**/*,docs/**/*,cmake/**,docker/**/*,patches/**/*,core/src/main.cpp,**/**_example.cpp,**/bm_test_helper.hpp
sonar.test.inclusions=**/test/**/*,**/benchmarks/bm_*,bench/bm_*,
sonar.cfamily.compile-commands=../build/compile_commands.json

0 comments on commit 6dc7fd5

Please sign in to comment.