[CI] Integrate SonarCloud to the repository#5845
Conversation
|
Thanks! Did you test it in your fork? Is it helpful? Is there a lot of unimportant noise? |
|
I will take a look. |
|
You can preview how it will appear in our project by checking here: |
92e7737 to
a3895d5
Compare
a3895d5 to
6aa4ea3
Compare
|
Should I rework the PR with @AndrewShkrob's changes and prepare it to be merged? @biodranik I see a lot of potential value here in regards to saving maintainers' time. |
|
@meenbeese , I've created an organization, started the scan, added SONAR_TOKEN to this repo and invited you to the organization. |
|
Please let me know if you need any help. |
20efa05 to
a42a05f
Compare
Thanks, I have seen the invite and joined the org, as well as applied the suggested changes. Since the sources and exclusions are also done, should we move ahead with customizing the |
|
Let's try to get it working. https://github.com/organicmaps/organicmaps/actions/runs/10550477538/job/29226696423 |
|
What are you expecting to see here if the workflow is not configured? 😄 |
What should be done to get it "configured"? The workflow is in this PR.. |
This workflow is just a template. Steps "Run build-wrapper" and "Run sonar-scanner" do nothing. That's why you see failures in the runner. But my config doesn't include everything supported by sonarcloud, f.e. test coverage, ios, android |
8809a2c to
7b9fd78
Compare
83da58f to
d7d9a3a
Compare
|
Interesting Sonar error after resolving dependency issues:
|
2246a00 to
1c9e9c1
Compare
Signed-off-by: Meenbeese <meenbeese@tutanota.com>
1c9e9c1 to
c86092a
Compare


Resolves #3180
SonarCloud sales pitch: Using this GitHub Action, scan your code with SonarCloud to detect bugs, vulnerabilities and code smells in C and C++!
I chose the C/C++/Objective-C version of the workflow as this covers more than 80% of our code.
I also took the first steps to integrate SonarCloud but some actions are needed from the maintainers:
Some useful documentation: