Sonarcloud branch not computing on projects

Even after multiple branch creations and code PR to main branch. Code compute is not happening on multiple projects.

I have changed different quality gates, but it shows not compute.

Hey there.

Take a look at these docs! When is a quality gate not computed?

Hi Colin,

Seen that but no use. Can we connect.

Thanks,

Susheel

You’re gonna have to go a bit more in detail. What about the docs weren’t helpful? Do neither of those situations detailed (no New Code definition or single analysis) apply to you?

Yes Colin, we have New Code definition set up and Analysis is happening on branches, but it shows not computed.

  • How have you configured your New Code Definition? Can you share a screenshot of what you see when you click on Set New Code Definition?
  • If you go to the Activity tab of a branch with no Quality Gate, do you see more than one analysis? Again, feel free to share a screenshot.

let me know, if additional details needed

For your main branch, do you see multiple analyses listed under the Activity tab? I’m referring to here:

i can see this:

What if you navigate to the Activity tab like in the screenshot I shared? What do you see?

I see same as above:

So this condition is true:

You have performed only one analysis on your code (the quality gate is computed after the second analysis).

And you need to perform a second analysis of this branch to have the quality gate computed.

Let say I have set my main branch to be Development, now Development branch should complete second Analysis than only quality gate is computed. Is my understanding, right?

Yes, that’s correct.

Ok, Thank you. we can resolve this.