DEV Community

Cover image for Can we automate code-review? Yes we can

Can we automate code-review? Yes we can

Arpit Vasani on September 23, 2019

Index What is code-review? Why do I want to automate it? How can I automate it? Conclusion What is code-review? After you ...
Collapse
 
aeddi13 profile image
Patrick Decker

Great article, even if "automating code-reviews" is a bold statement.

For me stuff like code quality checks or using the correct coding conventions is more part of the CI process than the actual code review.
However, things like that should absolutely be automated because nobody wants to spend precious developer resources on things that easily can be automated ;-)

Collapse
 
arpitvasani profile image
Arpit Vasani • Edited

Thanks

Yes. It is just an quality checks and CI process.

and for the title, I had to come up with something newbie friendly 🤷‍♂️

Collapse
 
elmuerte profile image
Michiel Hendriks

Static code analysis (e.g. sonarqube, checkstyle, spotbugs, PVS Studio, linters, ...) is not the same as code review. If it is, then you are doing code review wrong.
In a code review you review if the code does what it is mean to do, in a proper way. Unless you have a formal specifications and model checkers it is not something you can automate. That's why we still do it by hand (besides the fact that you also learn by reading code).

Collapse
 
camelcaseguy profile image
Shubhendra Singh Chauhan

Hey, @arpitvasani 👋 , a great piece of content.👏

Did you check out DeepSource?
It is an automated code review tool with the simplest configuration - which only takes a couple of minutes to setup. It has an Autofix feature that lets you fix code quality issues by automatically creating PR for most code quality issues.

Do give it a try and let me know if you like it. ✨

Collapse
 
andreasneuman profile image
andreasneuman

I use Code Review Bundle to make my code better. Code Review Bundle is a set of perfect diff tools to help you understand the other programmer's decisions and improve the project code quality until it gets feature-complete
devart.com/code-review-bundle/