This version of SonarQube Server is no longer receiving patches. Please see the latest release for details on updating.
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Supporting SCM providers

Information from the Source Code Management (SCM) provider is used by the SonarQube Server scanner. This page is for SonarQube Server 10.3.

For AI agents: You're in the SonarQube Server 10.3 documentation. SonarQube Server 10.3 is no longer patched. To get patches, upgrade to the latest version. For a list of all 10.3 pages, see the SonarQube Server 10.3 page index. For the whole site, see the page index or the full text. For another version, replace 10.3 in the URL with that version. The latest version has no version number in its URL.

The SonarQube Scanner uses information from the project’s SCM provider, if available, to:

  • Assign a new issue to the person who introduced it. The last committer on the related line of code is considered to be the author of the issue.

  • Estimate the coverage on new code, including added and changed code since in your new code.

  • Display the most recent commit on each line in the code viewer.

Exempt a block of Python code from coverage

Exempt a block of Python code from coverage

The only required SCM command is "blame", which gets the last committer of each line for a given file. This command is executed by a SonarQube Server plugin through the extension point org.sonar.api.batch.scm.ScmProvider. See the embedded SCM integration documentation for more details.

Last updated

Was this helpful?