sonarqube developer 2025.1
deployed using zip file
facing no. of line exceeding 1L , while the actual lines of is less than 50k in all the projects . Scan not initiating due to this
sonarqube developer 2025.1
deployed using zip file
Hi,
Welcome to the community!
The error is telling you that the new analysis would push you over your license LOC. Instead, an error is being thrown and the analysis rejected.
You should look at your pipeline to see if analysis scope has changed since the last successful analysis. Alternately, a lot of code was added to the project since the last successful analysis (but given the volumes we’re talking about, I doubt it).
HTH,
Ann
All the projects together does not exceed 1L lines of code . but analysis fails due to this exception .
thanks,
Surya
Hi Surya,
You need to take a look at what changed in the project in question between the last successful analysis and when it started failing. At a guess, the project configuration changed to accidentally include libraries or other large chunks of code in the analysis.
HTH,
Ann
Hi Ann,
We have added inclusion properties to all our projects . So any addition to the libraries or code should not disturb this property . It should only scan the files included if i am not wrong .
Thanks,
Surya
Hi Surya,
I don’t know what to tell you. You need to take a closer look at what’s being included in the analysis of the project.
HTH,
Ann
Hi Ann,
sonar {
properties {
property("sonar.debug", "true")
property("sonar.qualitygate.wait", true)
property("sonar.inclusions", "service/src/main/java/io/mysa/platform/instrument/managers/**/impl/*,service/src/main/java/io/mysa/platform/instrument/utils/**/*")
}
println("####qualitygate####")
}
Our current configuration^
Thanks,
Surya