Hi!
We noticed two strange problems with SonarCloud:
Name of the project has been changed to “main”.
SonarCloud reported that Quality Gate passed, but we use the default Quality Gate for Java, where coverage should not be lover 80%
Please advise how to fix these issues.
Regards,
Viktor
Colin
(Colin)
July 4, 2023, 12:26pm
2
Hey there.
What are you using to build/analyze this project? Maven? Gradle?
Hi Colin!
We are using Gradle to build the project.
Colin
(Colin)
July 7, 2023, 7:45am
4
Thanks. Let’s focus on this problem first:
The name of the project is derived by information that the Scanner for Gradle collects: specifically ${project.name}
(see more about analysis parameter defaults here ).
Is it possible that this got changed in your build.gradle or similar files?
Can you share a screenshot of the project dashboard for this pull request on SonarCloud?
Hi Colin!
Thanks, I fixed project name by explicitly setting ${project.name}.
Yes, sure.
Colin
(Colin)
July 12, 2023, 6:06am
6
Thanks. Take a look at this post:
Hey there.
Conditions on Coverage/Duplication are not calculated when there are fewer than 20 lines (SONAR-9352 ). We did this because of our own experiences with “diminishing returns” situations where the cumulative change sets were small and one or two uncovered lines caused the project to fail the Quality Gate.
So a few things to note:
I (think) we have lost something in the UI that is supposed to tell you this when your SLB falls into this situation. Something like: “Some Quality Gate con…
system
(system)
Closed
July 19, 2023, 6:07am
7
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.