mirror of
https://github.com/storytold/lightcraft.git
synced 2026-11-03 06:59:53 -06:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user