Overview about all the features the Include Code Quality for Bitbucket app provides.
After the app configuration is done, you are ready to create your first pull request.
When the build of the pull request branches is finished and all the Sonar™ based metrics and code quality figures are calculated, the app shows the statistics in your pull request:
As you see, metrics like technical debt, the number of found issues, duplicate lines and test coverage is shown in the app's pull request statistics popup.
If you go to the pull request diff view, you will notice the annotations for the found SonarQube™ issues:
The app provides many direct actions like:
All these actions are synced with SonarQube™, so you don't need to leave the Bitbucket pull request during a code review.
Test coverage is indicated with colored bars (green: fully covered, orange: partially covered, red: uncovered) on the left of the code lines for Bitbucket versions 7.0 or newer:
Duplicate code source lines are marked with a blue bar. Click on the links to directly navigate to duplicated code locations in Bitbucket's code browser:
Include Code Quality for Bitbucket will prevent you from merging code that does not meet the configurable quality requirements which are based on the quality gates defined in SonarQube™.
This will be indicated with a warning symbol in Bitbucket Server's pull request view and when you click on the warning symbol, a message will appear explaining which quality gates have been violated:
Include Code Quality for Bitbucket shows the quality gate status of your branches and pull requests in all lists within Bitbucket so that you can see quality issues immediately:
All important metrics about your branches like test coverage, quality gate status, reliability scores, etc. are shown within the repository source view depending on the chosen branch:
Within the source view for the files of your repositories, Include Code Quality for Bitbucket shows:
SONAR™, SONARQUBE™ and SONARCLOUD™ are independent and trademarked products and services of SonarSource SA: see sonarsource.com, sonarqube.org, sonarcloud.io.