Lines of Code Analyzed

Hi, I have a basic question.

I wrote 10 lines of code in my PR.

  1. This PR was raised from dev-branch to test-branch - Sonarqube analyzed it.
  2. Once approved, another PR (with the same code), was raised from test-branch to main-branch. Sonarqube analyzed it again.
  3. Once the code got successfully merged to main, Sonarqube analyzed the main branch.

So in this case, how many analyzed lines of code will be counted? 10 or 30?
I have a limit of 100k lines as part of my subscription plan.

Hi,

Welcome to the community!

You don’t exhaust your license by repeated analyses of the same code.

The docs go into detail, but basically, you can analyze the same 10k LOC project 100 times, and it will only count as 10k against your license.

 
HTH,
Ann