Reducing human effort and improving quality in peer code reviews using automatic static analysis and reviewer recommendation
The DOI matches its Crossref record.
Abstract
Peer code review is a cost-effective software defect detection technique. Tool assisted code review is a form of peer code review, which can improve both quality and quantity of reviews. However, there is a significant amount of human effort involved even in tool based code reviews. Using static analysis tools, it is possible to reduce the human effort by automating the checks for coding standard violations and common defect patterns. Towards this goal, we propose a tool called Review Bot for the integration of automatic static analysis with the code review process. Review Bot uses output of multiple static analysis tools to publish reviews automatically. Through a user study, we show that integrating static analysis tools with code review process can improve the quality of code review. The developer feedback for a subset of comments from automatic reviews shows that the developers agree to fix 93% of all the automatically generated comments. There is only 14.71% of all the accepted comments which need improvements in terms of priority, comment message, etc. Another problem with tool assisted code review is the assignment of appropriate reviewers. Review Bot solves this problem by generating reviewer recommendations based on change history of source code lines. Our experimental results show that the recommendation accuracy is in the range of 60%-92%, which is significantly better than a comparable method based on file change history.
Overview
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Integrity signals
Registry
Cites
Statistics
Verification
Claims the paper makes
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Self-check
Percentages, sums and reported differences re-computed from the paper’s own numbers.
The self-check needs the paper’s full text.
Citations
Cited by
Modern code review: a case study at google
Sadowski, C., Söderberg, E., Church, L., Sipko, M., & Bacchelli, A. (2018) · Proceedings of the 40th International Conference on Software Engineering: Software Engineering in Practice · doi:10.1145/3183519.3183525 · Cited by 280
Using pre-trained models to boost code review automation
Tufano, R., Masiero, S., Mastropaolo, A., Pascarella, L., Poshyvanyk, D., & Bavota, G. (2022) · Proceedings of the 44th International Conference on Software Engineering · doi:10.1145/3510003.3510621 · Cited by 177
“Similarly, Balachandran [11] and Singh et al.”
Automatically Recommending Peer Reviewers in Modern Code Review
Zanjani, M. B., Kagdi, H., & Bird, C. (2016) · IEEE Transactions on Software Engineering · doi:10.1109/tse.2015.2500238 · Cited by 175
“…gain of cHRev (i.e., X equals to precision, recall, Fscore, or MRR) over another compared approach (i.e., Y equals to REVFINDER, xFinder, or RevCom) using the following formula: GainX@mcHRev Y ¼ X@mcHRev X@mY X@mY 100: (10) Tables 5 and 6 show the precision, recall, F-score, and MRR gain values.”
BackgroundMethodInfluentialA Dataset of Peer Reviews (PeerRead): Collection, Insights and NLP Applications
Kang, D., Ammar, W., Dalvi, B., Zuylen, M., Kohlmeier, S., Hovy, E., & Schwartz, R. (2018) · Proceedings of the 2018 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long Papers) · doi:10.18653/v1/n18-1149 · Cited by 270
How developers engage with static analysis tools in different contexts
Vassallo, C., Panichella, S., Palomba, F., Proksch, S., Gall, H. C., & Zaidman, A. (2020) · Empirical Software Engineering · doi:10.1007/s10664-019-09750-5 · Cited by 161
“…like code review (Bacchelli and Bird 2013) exist to (i) ensure the quality of source code, (ii) verify the correctness of bug fixes (McIntosh et al. 2014; Rigby and German 2006), (iii) enforce coding conventions (Beller et al. 2014), or (iv) improve maintainability (Balachandran 2013; Rigby 2011).”
Background(2018) · doi:10.1145/3274404 · Cited by 122
“Also, early improvements of code changes before review are in line with the work by Balachandran [4].”
BackgroundResultCoRReCT: code reviewer recommendation in GitHub based on cross-project and technology experience
Rahman, M. M., Roy, C. K., & Collins, J. A. (2016) · Proceedings of the 38th International Conference on Software Engineering Companion · doi:10.1145/2889160.2889244 · Cited by 109
“RevFinder also out-performed existing techniques including ReviewBot [17].”
BackgroundMethodInfluentialCORE: Automating Review Recommendation for Code Changes
Siow, J. K., Gao, C., Fan, L., Chen, S., & Liu, Y. (2020) · 2020 IEEE 27th International Conference on Software Analysis, Evolution and Reengineering (SANER) · doi:10.1109/saner48275.2020.9054794 · Cited by 56
Zou, W., Xuan, J., Xie, X., Chen, Z., & Xu, B. (2019) · Empirical Software Engineering · doi:10.1007/s10664-019-09720-x · Cited by 37
“Balachandran (2013) developed a review bot, which integrated Checkstyle and FindBugs25 to automatically check the code style violations and potential bugs.”
MethodA Dataset of Peer Reviews (PeerRead): Collection, Insights and NLP Applications
Kang, D., Ammar, W., Dalvi, B., van Zuylen, M., Kohlmeier, S., Hovy, E., & Schwartz, R. (2018) · arXiv · doi:10.48550/arxiv.1804.09635 · Cited by 28
Input splitting for cloud-based static application security testing platforms
Christakis, M., Cottenier, T., Filieri, A., Luo, L., Mansur, M. N., Pike, L., Rosner, N., Schäf, M., Sengupta, A., & Visser, W. (2022) · Proceedings of the 30th ACM Joint European Software Engineering Conference and Symposium on the Foundations of Software Engineering · doi:10.1145/3540250.3558944 · Cited by 4
Metadata
- Authors
- Balachandran, V.
- Venue
- 2013 35th International Conference on Software Engineering (ICSE)
- Publisher
- IEEE
- Published
- 2013-05
- Pages
- 931-940
- ISSN
- 0270-5257 (ISSN-L)
- OpenAlex
- W4246032972
- Cited by
- 178
- References
- 0
- FWCI
- 6.46
- Type
- conference paper
- Language
- en
- Open access
- closed
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review
Data sources
Bibliographic data: Semantic Scholar, OpenAlex, Crossref.
Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).
Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.