SonarQube Server: Error while executing task Publish -server-wide lines of code total to exceed your

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube Server / Community Build, Scanner, Plugin, and any relevant extension):SonarQube ID information
    Server ID: 86E1FA4D-AZeKv43WfMmCzD4RPWM6
    Version: 2025.1.2.108896
    Date: 2025-06-30

  • how is SonarQube deployed: zip, Docker, Helm - zip/OnPrem

  • what are you trying to achieve : Scan the .Net project

  • what have you tried so far to achieve this - tried to scan locally

Throwing 100k limit of LOC error when running from azure DEvOps integration, however, when tried using “local” scan for the same project, it worked and showing 15k lines of code.
Do not share screenshots of logs – share the text itself (bonus points for being well-formatted)!

It’s likely that different files are being indexed during each run. To confirm this, enable DEBUG level logging for the scanner by setting sonar.verbose=true. For example, your scanner logs should include lines like:

10:46:19.884 DEBUG: 'obj/gnatsas/sdc.inspector/output/b__sdc.ads.msgs.xml' indexed with language 'xml'
10:46:19.884 DEBUG: 'obj/gnatsas/sdc.inspector/output/stack.ads.msgs.xml' indexed with language 'xml'

This detailed output will make it clear which files are being included in the analysis. Once you identify any unexpected differences, you can adjust your analysis scope to ensure the correct files are analyzed.