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.
  • Loading branch information
wirew0rm committed Sep 19, 2024
1 parent 63f82c7 commit ed93d62
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions sonar-project.properties
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@ sonar.cfamily.cpp23.enabled=true
#sonar.sourceEncoding=UTF-8

sonar.coverageReportPaths=../build/coverage.xml
sonar.test=.
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 ed93d62

Please sign in to comment.