In this article, we will learn how to do the code review process using AWS CodeGuru. Let me tell you first what is CodeGuru and how it works ?
What is code review :
Code review process includes suggestions for optimization of the most expensive line of codes. It checks whether code is readable and understandable by a naive user or not. It includes how function naming has done or getting called etc.
AWS CodeGuru :
AWS CodeGuru is a developer tool that provides intelligent recommendations to improve your code quality and identify an application’s most expensive lines of code. This automation works based on generalised guidelines given by open source code communities and language based. CodeGuru Reviewer uses machine learning to identify critical issues, security vulnerabilities, and hard-to-find bugs during application development to improve code quality. It focuses more on the most expensive lines of code to improvisation.
How its works :
Benefits of CodeGuru :
- Troubleshooting performance issues
- Discover inconsistency and common issues in your application performance
- Catch your most expensive line of code today
Steps to start of CodeGuru:
- You should have an AWS console account to access AWS CodeGuru.
- Go to Search Console -> Open CodeGuru
- Click on Associate Repository option which show on dashboard or console
- Select which repository management tool like Github, CodeCommit, BitBucket etc. You need to authorise respective account by login to site and give permission.
- Click on Associate after selecting the repository from list of repository.
- Tag is an optional step to identify a project. It will show like below Associating...
- Then select Code Reviews from the left side menu.
- Create Repository Analysis for each repository.
- It will go to a pending state. Once it's completed its will show result like below 👇🏻
Then we are done with the code review process. You can work on recommendations given based on analysis. Fix those issues and run it again.
Hope you like my blog. Thanks for reading my blog. If you have any questions you can reach out to me at my twitter handle - @aviboy2006
Did you find this article valuable?
Support Avinash Dalvi by becoming a sponsor. Any amount is appreciated!