Lines of code increase after Sonarqube upgrade to 10.2

Hello,

Recently I have upgraded Sonarqube having a postgresql database backup of 8.6 sonar versions restored to 8.9 LTS and upgraded database then perform sonar upgrade to 9.9 LTS–>10.2

An initial sonar version 8.6 is having LOC: 4,260,070 lines currently analyzed.
But after upgrading to 10.2 version LOC increased to 5481000 lines which exceeded LOC limit of 5000000.

Note:

  1. I performed analysis of 1 project after 10.2 which was already part of base database of 8.6 version having 500K LOC. Even after including this LOC(which we should not as it was already part of database) it should be 4,260,070 + 500k = 4760070 (within threshold of 5000000 LOC) but it was 5481000 which is incorrect and not getting result on sonar dashboard becasue of it

Why lines of code increase after sonarupgrade?

Let me know if any info is needed.

Hi,

SonarQube has added additional languages since 8.6. It’s possible those files were picked up.

Can you provide your analysis log?

The analysis / scanner log is what’s output from the analysis command. Hopefully, the log you provide - redacted as necessary - will include that command as well.

This guide will help you find them.

 
Ann