How to silence warnings about sonar.pullrequest.provider being deprecated

  • SonarQube Enterprise, Azure DevOps, GitHub
  • Remove deprecation warning from SonarQube reports

When running Azure pipelines against a Pull Request in GitHub, we see the following warning against each report on our SonarQube server:

Usage of parameter ‘sonar.pullrequest.provider’ from the scanner is deprecated. Please configure this parameter in the configuration of your project.

Presumably this parameter is set by one of the Azure tasks: SonarQubePrepare@4, SonarQubeAnalyze@4, or SonarQubePublish@4 so it’s not something we directly have any control over. Is there a way to silence this warning so that we don’t end up in the “broken windows” syndrome of having a warning that is always there but can be ignored?

3 Likes