PoC: evaluate SonarCloud as a code quality and coverage tool#4996
Open
fernandolins wants to merge 10 commits into
Open
PoC: evaluate SonarCloud as a code quality and coverage tool#4996fernandolins wants to merge 10 commits into
fernandolins wants to merge 10 commits into
Conversation
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Linked issue
Closes #4995
Summary / motivation
Bedges available:





SONAR DASHBOARD
Integrates SonarCloud into the CI pipeline as a proof of concept to evaluate whether
it surfaces actionable quality and security insights for this codebase.
Changes:
sonar-project.propertiesconfiguring sources (pylib,qt,ts,rslib)and coverage report paths
tools/coverage/coverage-py(and.bat) to emitcoverage.xml(Cobertura)tools/coverage/coverage-ts(and.bat) to emitlcov.infovia the V8 providertools/coverage/coverage-rust(and.bat) to emitlcov.infoviacargo-llvm-cov reportSonarCloud Scanstep to thecheck-linuxCI job, running after allchecks pass and before the build cache is saved
How to test
Details
1. Install sonar-scanner
2. Generate and configure a token
Go to sonarcloud.io → My Account → Security → Generate Token
Copy the generated token and export it in your shell:
3. Generate coverage reports
Expected output files:
4. Run the scanner manually
Results will appear in the SonarCloud dashboard
To test coverage generation locally: