diff --git a/sonar-project.properties b/sonar-project.properties index 717d1dfac0..462b15b797 100644 --- a/sonar-project.properties +++ b/sonar-project.properties @@ -2,8 +2,11 @@ sonar.projectKey=storytold_lightcraft sonar.organization=storytold sonar.coverage.exclusions=**/tools/**,**/docs/**,**/examples/** -# Keep packaging tests analyzed as tests, outside production coverage metrics. -sonar.tests=packaging/linux/flatpak -sonar.test.inclusions=packaging/linux/flatpak/test_*.py -sonar.exclusions=packaging/linux/flatpak/test_*.py +# Setting sonar.tests without sonar.sources stops the scanner defaulting to the whole repository, +# which left only the packaging test indexed and the main branch analysed as empty. Sources and +# tests both start at the root; sonar.test.inclusions picks out the test files, so they are +# analysed as tests (outside production metrics and coverage) rather than left out. +sonar.sources=. +sonar.tests=. +sonar.test.inclusions=**/tests/**,**/tests.rs,**/tests_*.rs,**/*_tests.rs,**/test_*.py sonar.python.coverage.reportPaths=python-coverage.xml