SonarCloud.io line counts (licensing) and branch plugin...

157 views
Skip to first unread message

Matt Moore

unread,
Dec 8, 2017, 9:40:36 AM12/8/17
to SonarQube
Currently we are creating SQ projects for every .sln in every branch.

Basically we are using Cloudbees folders (Jenkins) to create new branch build chains that then run analysis of every .sln inside the branch.

So if we have 10 .sln files per branch and we have 3 branches, we end up with 30 projects in SQ.

The thought here is that we want to make sure we pass quality gates on the branches before they get merged to trunk.

This is causing us to go over our 2million line limit within 2 branches as we have 1.3 million lines of code in the total codebase.

Qustions:
  1. Will using the branch plugin reduce the number of lines of code used towards our limit?
  2. If not, what type of 'architecture' would you recommend?

xavier.bo...@sonarsource.com

unread,
Dec 13, 2017, 3:42:35 AM12/13/17
to SonarQube
Hi Matt,

With the branch plugin, the number of lines of code is calculated only on your master branch (trunk in your case)
You will also be able to see quality gates status on long living branch.

Regards,

Xavier
Reply all
Reply to author
Forward
0 new messages