Automated Code Reviews

Ship better code, faster.

Code Reviews with Code Inspector

Code Inspector automates your code reviews on GitHub, GitLab, and Bitbucket. The integration is seamless and does not require any particular set up on the user side.

When Code Inspector performs automated code reviews, our analysis engine inspects the source and target branches and surfaces any issues introduced in the new code. Code Inspector annotates the diff directly on your code hosting provider.

When performing a code review, Code Inspector looks for the following issues:

  • Violations. A violation is any problem related to the code itself regarding security, safety, performance, documentation, or just best practices.
  • Duplicates. Any code that has been duplicated from other files should instead become function calls.
  • Long functions. A long function is a function with more than 40 lines of code. Such functions are considered too long and hard to read and maintain. Users can change the threshold for long functions in the project preferences.
  • Complex functions. Any function with a cyclomatic complexity higher than 25. Users can change this threshold in the project preferences.

Users can tailor the analysis engine, disable some rules depending on their analysis requirements.

The following paragraphs show how this code review looks like onode in each platform.

Get insight into your team dynamics

Code Inspector shows statistics on your code reviews to diagnose any team's potential problems. The platforms report the number of code reviews per engineer, the prevalent issues in all code reviews, and the most modified files.

This functionality helps developers and engineering managers diagnose potential issues, either in the team or in the codebase. For example, if one file changes in most code reviews, it might become a bottleneck in your software architecture and need to be split into smaller files. That will then avoid potential merge conflicts and help your team having better code reviews.

Learn more about code reviews analytics

Automated code reviews on GitHub

Code Inspector initiates a new code review on GitHub for each pull request. Code Inspector creates a check run on GitHub and reports the analysis status accordingly: if an issue is detected, Code Inspector reports the run as failed. If no problem is detected, Code Inspector reports the run as successful.

C

Code Inspector also annotates the code changes with all the found violations. You can see all violations in the diff by clicking on the "Files Changed" tab of the code review interface on GitHub, as shown below.

C

Install the Code Inspector GitHub App

Automated code reviews on GitLab

Code Inspector initiates a new code review on GitLab for each merge request. Code Inspector reports the code reviews' status in the comment section of the merge request, as shown below.

C

Code Inspector also annotates the code changes with all the found violations. You can see all violations in the diff by clicking on the "Changes" tab of the code review interface on GitLab, as shown below.

C

Get started with GitLab

Automated code reviews on Bitbucket

Code Inspector initiates a new code review on Bitbucket for each pull request. Code Inspector reports the code reviews' status in the pull request comment section, as shown below.

C

Code Inspector also reports the code analysis status in the build section of the pull request on Bitbucket. That information can be used in your CI/CD pipeline and block the build if issues are found.

Code Inspector also annotates the code changes with all the found violations. You can see all violations in the diff directly in the code review interface on Bitbucket, as shown below.

C

Install the Code Inspector Bitbucket App

Want to automate your code reviews?

Code Inspector is a code analysis platform that performs automated code reviews on GitHub, GitLab, and Bitbucket. It is free to use for public projects. Try it now!

Try Code Inspector today!