Title
How Are If-Conditional Statements Fixed Through Peer Codereview?
Abstract
Peer code review is key to ensuring the absence of software defects. To reduce review costs, software developers adopt code convention checking tools that automatically identify maintainability issues in source code. However, these tools do not always address the maintainability issue for a particular project. The goal of this study is to understand how code review fixes conditional statement issues, which are the most frequent changes in software development. We conduct an empirical study to understand if-statement changes through code review. Using review requests in the Qt and OpenStack projects, we analyze changes of the if-conditional statements that are (1) requested to be reviewed, and are (2) revised through code review. We find the most frequently changed symbols are "( )", ".", and "!". We also find project-specific fixing patterns for improving code readability by association rule mining. For example "!" operator is frequently replaced with a function call. These rules are useful for improving a coding convention checker tailored for the projects.
Year
DOI
Venue
2018
10.1587/transinf.2018EDP7004
IEICE TRANSACTIONS ON INFORMATION AND SYSTEMS
Keywords
Field
DocType
codeReview, if statement, code readability
Computer vision,Computer science,Artificial intelligence,Natural language processing
Journal
Volume
Issue
ISSN
E101D
11
1745-1361
Citations 
PageRank 
References 
0
0.34
0
Authors
5
Name
Order
Citations
PageRank
Yuki Ueda101.69
Akinori Ihara223819.84
Takashi Ishio321128.48
Toshiki Hirao431.40
Ken-ichi Matsumoto51396131.56