Skip to content

LightCraft: An open-source non-destructive photo editor written by scratch in pure Rust

Scan the whole repository again in SonarCloud (#3224)

Dylan M. Taylor56b5c8b076d1
diff --git a/sonar-project.properties b/sonar-project.properties
index 717d1dfac..462b15b79 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