Does code review really remove coding convention violations? | IEEE Conference Publication | IEEE Xplore

Does code review really remove coding convention violations?


Abstract:

Many software developers perceive technical debt as the biggest problems in their projects. They also perceive code reviews as the most important process to increase code...Show More

Abstract:

Many software developers perceive technical debt as the biggest problems in their projects. They also perceive code reviews as the most important process to increase code quality. As inconsistent coding style is one source of technical debt, it is no surprise that coding convention violations can lead to patch rejection during code review. However, as most research has focused on developer's perception, it is not clear whether code reviews actually prevent the introduction of coding convention violations and the corresponding technical debt.Therefore, we investigated how coding convention violations are introduced, addressed, and removed during code review by developers. To do this, we analysed 16,442 code review requests from four projects of the Eclipse community for the introduction of convention violations. Our result shows that convention violations accumulate as code size increases despite changes being reviewed. We also manually investigated 1,268 code review requests in which convention violations disappear and observed that only a minority of them have been removed because a convention violation has been flagged in a review comment. The investigation results also highlight that one can speed up the code review process by adopting tools for code convention violation detection.
Date of Conference: 28 September 2020 - 02 October 2020
Date Added to IEEE Xplore: 11 November 2020
ISBN Information:

ISSN Information:

Conference Location: Adelaide, SA, Australia

I. Introduction

The adoption of coding conventions, or programming style guidelines, is one of the most widely accepted best practices in software development. It is assumed that adherence to coding conventions increases not only readability [1], [2], [3] but also maintainability of software. Moreover, inconsistent coding style is one source of technical debt, specifically code debt. A survey of 682 developers [4] showed that technical debt is the biggest concern of developers and they spend 17% of their time addressing technical debt.

Contact IEEE to Subscribe

References

References is not available for this document.