The integration with Bitbucket is done through a dedicated Bitbucket App. The video below shows how to install the Bitbucket App.
All the details of the App is available below.
How to install the App
From the marketplace
Our application is available on the Bitbucket Marketplace.
Using a direct link
You can install the Bitbucket app by directly clicking on the following button. It will prompt you on what account or group you want to install the app on.
Once you install the app, you need to add repositories to the app (see below).
How to add repositories
Adding repositories is done on Bitbucket. Simply go to a repository on your Bitbucket account. When a repository is managed by Code Inspector, the banner on top of the project looks like the picture below.
Click on the add project link to add the project on Code Inspector.
Once the project is added and an analysis is completed, a summary of the analysis metrics is being surfaced directly on Bitbucket, as shown below.
Note: if the project belongs to a group or team in Bitbucket, Code Inspector will automatically create a group on Code Inspector. Each Bitbucket user will have access to the project on Code Inspector once logged with their Bitbucket account.
The same limits apply for Bitbucket accounts as for regular accounts. See our pricing page for limits on each account type.
All existing features on Code Inspector
Historical metrics, technical debt analysis, per commit analysis: you can access all the data as any other account.
Integration of Code Inspector metrics within the Bitbucket UI
Code Inspector metrics are directly integrated within the Bitbucket UI and can be view at two places:
- On the main page of the repository, where the code quality score is shown (first picture below)
- On a dedicated page where key metrics are shown (second picture below)
This brings the ability to quickly see what are the metrics available when you navigate on Bitbucket. The main interface of Code Inspector is available on our frontend with more details and fine-grained data on code quality and technical debt.
Automated Code Review
Code Inspector automatically processes Pull Requests on Bitbucket, analyzes code change and annotates the code according to violations, duplicates, complex and unreadable code.
This functionality is similar to the one offered by our GitHub application.
The comment in pull requests are being issued with the identity of the user that installed the Bitbucket App. Unfortunately, this is due to a limitation from Bitbucket. Once this limitation is being removed, we will post comments under the name of our application.
Support for user
In order to use Code Inspector with your Bitbucket account, you need to install our Bitbucket application. The Code Inspector application enables features such as integration of Code Inspector metrics in the repository view as well as automated code reviews.
Support for groups
Bitbucket teams are mapped into Code Inspector groups. In other words, when you install our Bitbucket application for a team, it creates a group on code inspector. Any member of the Bitbucket team that logs using their Bitbucket account on Code Inspector will be a member of that group on Code Inspector.
Bitbucket repositories are mapped into Code Inspector projects. Code Inspector projects are created in two ways:
- Manually from the interface (see above the dedicated section)
- Automatically when a project is created (after the Bitbucket application is installed).
Upgrading your account
If you hit the limit for the number of repositories or analyses and want to upgrade your account, please contact us using the integrated support feature of our product or directly using the contact form on our landing page. We do not support automatic billing for Bitbucket accounts at this time.
Bitbucket Server Support
We do support Bitbucket Server, which allows using Code Inspector on your dedicated Bitbucket server. The billing form is different and tailored to customer needs, please contact us to get more information from our sales team.
- Upgrade: account upgrade to gold or silver are not handled automatically at this time.
- Mercurial repositories: we only support Git repositories at this time.
In a nutshell: Code Inspector keeps data about your profile (username, email) and the projects being analyzed. It does not keep any source code on its servers.
Note: if you decide to remove our Bitbucket App from your Bitbucket account, all user data, projects and metrics are automatically removed from our servers.
Contact and Support
The Bitbucket app is supported as an official Code Inspector product. Do not hesitate to use the support feature within our product or directly contact us.