How to turn off multi-language analysis warning

I am setting up a project that uses Azure DevOps pipelines for its continuous integration to run code analysis on SonarQube Server v24.12.0.100206. I have followed the instructions provided by SonarQube, and analysis and publishing of results is working exactly as expected.

However, I am seeing a warning pop up continually on the project overview page, saying:

Multi-Language analysis is enabled. If this was not intended and you 
have issues such as hitting your LOC limit or analyzing unwanted files, 
please set "/d:sonar.scanner.scanAll=false" in the begin step.

Analysis is configured thusly:

- task: SonarQubePrepare@7
  displayName: Prepare SonarQube scanner
  inputs:
    SonarQube: 'SonarQube'
    scannerMode: 'dotnet'
    projectKey: '${{parameters.sonarProjectKey}}'
    projectVersion: '${{parameters.version}}'

How can I make this warning go away, whether or not I wanted multi-language analysis? Is there a setting I can pass via the extraProperties field that the documentation mentions?

Hello @davidkeaveny,

Unfortunately, as of today, there is no way to disable the warning unless you disable the feature by setting the property /d:sonar.scanner.scanAll=false.

However, this warning has been here for a long time now and should be removed.
I have created a ticket in our backlog to remove it in the future.

Have a nice day!

Hi @sebastien.marichal and thanks for your response!

If I am using the Azure DevOps tasks for this, where can I specify the extra parameters if I wanted to turn off multi-language settings? It’s easy enough when running from the CLI, but I can’t see anything obvious in the SonarQubePrepare task or the other tasks.

Hey @davidkeaveny!

It is as simple as adding it to the SonarQubePrepare task.

        - task: SonarQubePrepare@7
            inputs:
              SonarQube: 'SonarQubeEndpoint'
              scannerMode: 'dotnet'
              projectKey: 'foo_sonar-scanning-someconsoleapp'
              projectName: 'sonar-scanning-someconsoleapp'
              extraProperties: |
                sonar.scanner.scanAll=false

I feel this extraProperties bit is not really documented where it should be. I’ve flagged this for our docs team.

Many thanks for both providing the solution, and for escalating to the documentation team!