- Sonarqube server version : v2025.4.2 (112048),Sonarqube scanner version SonarScanner CLI 7.1.0.4889
- Sonarqube is hosted as a on-prem server
- We are currently attempting to scan our code repository using SonarQube. The repository is configured as a local repository (not connected to GitHub or any SCM). However, we are unable to perform any scans since this error occurred.
- Whenever we attempt to run a scan, the process fails and we receive the following error message:
“The last analysis failed because it would have caused your server-wide lines of code total to exceed your 1000000 limit.Go to License page.“
We were performing scanning of our code repository using Sonarqube server.All our scanning has been done using local repository options in Sonarqube. While we are trying to run the scan we are prompted with error stated above. We would kindly need support for the same.We are not able to proceed with any scanning due to this issue.
We expect the scan to complete successfully without exceeding the server-wide LOC limit, or to receive guidance on how to resolve the license/LOC limitation.
Clarification needed:
1.How does SonarQube handle repeated scans on the same local repository?
Does it analyze only modified files or does it re-scan the entire codebase each time
2.How does SonarQube handle scans performed on the same code but created as different local repositories?
Does it analyze only modified files or does it re-scan the entire codebase each time
3.If multiple scanners are used for the same project, will SonarQube re-scan all lines of code?
Does running different scanners trigger a full scan again, thereby increasing the LOC count?
