You can log into Code Inspector using your Gitlab credentials. Your account is then automatically linked with Gitlab and you can easily add Gitlab repositories in your code inspector projects.
- Import Gitlab repositories
- Code Reviews on Merge Requests
- Automated Code Fix (silver and gold accounts)
In order to have code reviews and analyses on push, you need to make sure webhooks are activated.
Code Inspector installs a webhook when you import a Gitlab project. However, you may have deleted it yourself and/or removed it in the past.
Make sure the webhook is activated. You can activate the webhook in your project preferences on Code Inspector.
Once you create the webhook from Code inspector, you should see a webhook appearing in your Gitlab preferences too, as shown below.
If the webhook is not created, it is because the user attempting to create the webhook does not have enough permission to create a webhook. In that case, you will need to upgrade this user permission or use another account to manage this project on Code Inspector.
Code Inspector will do automated code reviews on merge requests. For each new commit, the platform will annotate the code with violations it found, as shown below.
The Code Review will be done with the account that created the repository. You may want to use a service account (e.g. an account that does not belong to a developer) to do the code review to distinguish comments from the automated code review from the one from developers.
In that case, creates the project with the service account. You can also contact us to change the owner of the project and associate it with the service account. To do so, make sure the service account is registered on Code Inspector and send us the project and the name of the service account, we can change the owner of the project.