Start FreeLog in
SonarCloud | Getting started with SonarCloud | Viewing your first analysis' results

Viewing your first analysis' results

On this page

If you have successfully followed the in-product tutorial, SonarCloud will run its first analysis on your project.

The first analysis is always a main branch analysis (an analysis of the default branch of your repository, usually called main or master).

From now on, a new analysis will be triggered every time you make a change to the main branch by direct push, pull request merge, or branch merge.

SonarCloud's first analysis, run on the main branch.

Main Branch Status

The Main Branch Status is the quality gate of your main branch, indicating whether it meets your quality requirements and is ready to be released.

Main Branch Evolution

The Main Branch Evolution displays a summary of the code quality results from the main branch analysis. In this section, you will find tabs that display different metrics:

  • Issues displays the number of issues found in the main branch.
  • Coverage displays the percentage of testable code in the main branch that is covered by your test cases.
  • Duplications displays the percentage of main branch code that is duplicated.

The historical data chart shows the progress of your code quality.

Latest Activity

Scroll down to find the Latest Activity section; it displays a feed of all analyses that have been run, including all main branch analyses, pull request analyses, and branch analyses.

Project navigation

The project navigation on the left lets you move between the four views: OverviewMain BranchPull Requests, and Branches.

Navigate your SonarCloud project using the Overview, Main Branch, Pull Requests, and Branches pages.

Main Branch

Select Branches > MAIN BRANCH to see a more fine-grained view of your most recent Main branch analysis.

Pull Requests

In addition to analyzing your main branch every time it changes, SonarCloud also analyzes individual pull requests. These analyses run when a pull request is opened and on each change to the pull request branch. This all happens before you merge, letting you catch problems before they even get to the main branch, an important part of the Clean as You Code methodology. The results of pull request analysis are displayed in the Pull Requests view of your SonarCloud project and the pull request view of your DevOps Platform (GitHub, Bitbucket Cloud, Azure DevOps, or GitLab).

See the Pull request analysis page for more details.

Branches

The Branches view displays all the non-pull request branches for which you have set up analysis. Initially, only the main branch is listed here. But, you can configure other branches to be analyzed. Once a branch is configured, an analysis is run on every change to that branch.

See Branch analysis and Branch analysis setup.


Was this page helpful?

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

Creative Commons License