[IWPD2017] How is IF Statement Fixed Through Code Review? -A case study of Qt project-

Authors: Yuki Ueda, Akinori Ihara, Toshiki Hirao, Takashi Ishio, and Kenichi Matsumoto

Abstract: Peer code review is key to ensuring the absence of software defects. To improve the review process, many code review tools provide OSS (Open Source Software) project CI (Continuous Integration) tests that automatically verify code quality issues such as code convention issues. However, these tests do not cover project policy issues and code readability issues. In this study, our main goal is to understand how a code owner fixes conditional statement issues based on reviewers feedback. We conduct an empirical study to understand if statement changes after review. Using 69,325 review requests in the Qt project, we analyze changes of the if conditional statements that (1) are requested to be reviewed, and (2) that are implemented after review. As a result, we find the most common symbolic changes are “(” and “)” (35%) , “!” operator (20%) and “->” operator (12%). Also, “!” operator is frequently replaced with “(” and “)”.


← Go back to Akinori Ihara’s publications