Automate Code Review KPI and analyse correlations with the generated values
Jahangir, Shadman (2022)
Jahangir, Shadman
2022
Master's Programme in Computing Sciences
Informaatioteknologian ja viestinnän tiedekunta - Faculty of Information Technology and Communication Sciences
This publication is copyrighted. You may download, display and print it for Your own personal use. Commercial use is prohibited.
Hyväksymispäivämäärä
2022-11-22
Julkaisun pysyvä osoite on
https://urn.fi/URN:NBN:fi:tuni-202211018048
https://urn.fi/URN:NBN:fi:tuni-202211018048
Tiivistelmä
Code review, also known as peer code review, is the deliberate and methodical gathering of one's fellow programmers to examine each other's code for errors. This thesis was done at a company that required a code review KPI (Key Performance Indicator) moni toring tool to be built. The company has standard code review process, and they want to encourage all the teams to follow the code review process regularly. To verify the regu larity, the management requires the code review KPI for different repositories. It takes a lot of time to calculate the KPI value manually. The requirement was to prepare the KPI tool and visualize the values graphically for their internal use. Besides this, the purpose of this thesis was to analyze if there were any correlations available between the KPI values or some other information in their repositories.
The tool was successfully developed as a new product, and users have already started to use it. A survey was conducted after the implementation of the tool among the team to which I relate, and there were some valuable responses found from this. Research has been performed with a total of one year of KPI (Key Performance Indicator) values and some repositories’ information to find correlations. Some data from SonarQube was also included in the research data. The result showed some correlations between some concrete values (the number of unreviewed code updates and the number of corrected bugs). There were some other correlations found with KPI values which we discussed in this thesis. The company was also looking for some answers on whether the code review was worth it. The effectiveness of code review has been discussed by considering the correlations found from the analysis.
The tool was successfully developed as a new product, and users have already started to use it. A survey was conducted after the implementation of the tool among the team to which I relate, and there were some valuable responses found from this. Research has been performed with a total of one year of KPI (Key Performance Indicator) values and some repositories’ information to find correlations. Some data from SonarQube was also included in the research data. The result showed some correlations between some concrete values (the number of unreviewed code updates and the number of corrected bugs). There were some other correlations found with KPI values which we discussed in this thesis. The company was also looking for some answers on whether the code review was worth it. The effectiveness of code review has been discussed by considering the correlations found from the analysis.