This version of the SonarQube documentation is no longer maintained. It relates to a version of SonarQube that is not active.

See latest version
Start Free
9.6 | Extension Guide | Developing a plugin | Supporting SCM providers

Supporting SCM providers

The SonarQube Scanner uses information from the project's SCM, 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

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 plugin through the extension point org.sonar.api.batch.scm.ScmProvider. See the embedded SCM integrations documentation for more details.


Was this page helpful?

© 2008-2024 SonarSource SA. All rights reserved. SONAR, SONARSOURCE, SONARLINT, SONARQUBE, SONARCLOUD, and CLEAN AS YOU CODE are trademarks of SonarSource SA.

Creative Commons License