Scan the whole repository again in SonarCloud (#3224)

* Scan the whole repository again in SonarCloud

* Classify the repository's test files as tests in SonarCloud
This commit is contained in:
Dylan M. Taylor
2026-10-27 23:18:52 -04:00
committed by GitHub
parent 37b2e523ad
commit 56b5c8b076
+7 -4
View File
@@ -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