Lune

ISSTA2025Top-tier venue

Understanding Practitioners' Expectations on Clear Code Review Comments

Junkai Chen, Zhenhao Li, Qiheng Mao, Xing Hu, Kui Liu, Xin Xia

Abstract

The code review comment (CRC) is pivotal in the process of modern code review. It provides reviewers with the opportunity to identify potential bugs, offer constructive feedback, and suggest improvements. Clear and concise code review comments (CRCs) facilitate the communication between developers and are crucial to the correct understanding of the identified issues and proposed solutions. Despite the importance of CRCs' clarity, there is still a lack of guidelines on what constitutes a good clarity and how to evaluate it. In this paper, we conduct a comprehensive study on understanding and evaluating the clarity of CRCs. We first derive a set of attributes related to the clarity of CRCs, namely RIE attributes (i.e., Relevance, Informativeness, and Expression), as well as their corresponding evaluation criteria based on our literature review and survey with practitioners. We then investigate the clarity of CRCs in open-source projects written in nine programming languages and find that a large portion (i.e., 28.8%) of the CRCs lack the clarity in at least one of the attributes. Finally, we explore the potential of automatically evaluating the clarity of CRCs by proposing ClearCRC. Experimental results show that ClearCRC with pre-trained language models is promising for effective evaluation of the clarity of CRCs, achieving a balanced accuracy up to 73.04% and a F-1 score up to 94.61%.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

4 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • From Static to Dynamic: Benchmarking Real-World Code Review with MCR-Bench cites Using Pre-Trained Models to Boost Code Review Automation
  • From Static to Dynamic: Benchmarking Real-World Code Review with MCR-Bench cites SecureReviewer: Enhancing Large Language Models for Secure Code Review through Secure-Aware Fine-Tuning
  • From Static to Dynamic: Benchmarking Real-World Code Review with MCR-Bench cites Automating code review activities by large-scale pre-training
  • CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generation cites CodeBERT: A Pre-Trained Model for Programming and Natural Languages
  • Towards Secure Logging: Characterizing and Benchmarking Logging Code Security Issues with LLMs cites Defects4Log: Benchmarking LLMs for Logging Code Defect Detection and Reasoning
  • SecureReviewer: Enhancing Large Language Models for Secure Code Review through Secure-Aware Fine-Tuning cites CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generation
  • SecureReviewer: Enhancing Large Language Models for Secure Code Review through Secure-Aware Fine-Tuning cites CodeBERT: A Pre-Trained Model for Programming and Natural Languages
  • SecureReviewer: Enhancing Large Language Models for Secure Code Review through Secure-Aware Fine-Tuning cites Using Pre-Trained Models to Boost Code Review Automation
  • SecureReviewer: Enhancing Large Language Models for Secure Code Review through Secure-Aware Fine-Tuning cites Automating code review activities by large-scale pre-training
  • Automating code review activities by large-scale pre-training cites CodeBERT: A Pre-Trained Model for Programming and Natural Languages
  • Automating code review activities by large-scale pre-training cites Using Pre-Trained Models to Boost Code Review Automation
  • Exploring the Potential of ChatGPT in Automated Code Refinement: An Empirical Study cites CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generation
  • Exploring the Potential of ChatGPT in Automated Code Refinement: An Empirical Study cites CodeBERT: A Pre-Trained Model for Programming and Natural Languages
  • Exploring the Potential of ChatGPT in Automated Code Refinement: An Empirical Study cites Using Pre-Trained Models to Boost Code Review Automation
  • Exploring the Potential of ChatGPT in Automated Code Refinement: An Empirical Study cites Automating code review activities by large-scale pre-training
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers4

  1. Defects4Log: Benchmarking LLMs for Logging Code Defect Detection and ReasoningXin Wang, Zhenhao Li, Zishuo DingASE 2025 · 1 citation
  2. From Static to Dynamic: Benchmarking Real-World Code Review with MCR-BenchDewu Zheng, Yanlin Wang, Xiwen Wang, Kefeng Duan et al.ISSTA 2026
  3. Towards Secure Logging: Characterizing and Benchmarking Logging Code Security Issues with LLMsHe Yang Yuan, Xin Wang, Kundi Yao, An Ran Chen et al.FSE 2026
  4. SecureReviewer: Enhancing Large Language Models for Secure Code Review through Secure-Aware Fine-TuningFang Liu, Simiao Liu, Yinghao Zhu, Xiaoli Lian et al.ICSE 2026

Builds on15

  1. CodeBERT: A Pre-Trained Model for Programming and Natural LanguagesZhangyin Feng, Daya Guo, Duyu Tang, Nan Duan et al.EMNLP Findings 2020 · 2,828 citations
  2. CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and GenerationYue Wang, Weishi Wang, Shafiq R. Joty, Steven C. H. HoiEMNLP 2021 · 1,224 citations
  3. Automating code review activities by large-scale pre-trainingZhiyu Li, Shuai Lu, Daya Guo, Nan Duan et al.FSE 2022 · 195 citations
  4. Using Pre-Trained Models to Boost Code Review AutomationRosalia Tufano, Simone Masiero, Antonio Mastropaolo, Luca Pascarella et al.ICSE 2022 · 149 citations
  5. Exploring the Potential of ChatGPT in Automated Code Refinement: An Empirical StudyQi Guo, Junming Cao, Xiaofei Xie, Shangqing Liu et al.ICSE 2024 · 107 citations

Related papers

  1. EvaCRC: Evaluating Code Review CommentsLanxin Yang, Jinwei Xu, Yifan Zhang, He Zhang et al.FSE 2023 · 14 citations
  2. Towards Automating Code Review ActivitiesRosalia Tufano, Luca Pascarella, Michele Tufano, Denys Poshyvanyk et al.ICSE 2021 · 4 citations
  3. CodeReviewQA: The Code Review Comprehension Assessment for Large Language ModelsHong Yi Lin, Chunhua Liu, Haoyu Gao, Patanamon Thongtanunam et al.ACL Findings 2025 · 7 citations
  4. Are They All Good? Studying Practitioners' Expectations on the Readability of Log MessagesZhenhao Li, An Ran Chen, Xing Hu, Xin Xia et al.ASE 2023 · 6 citations
  5. Large Language Models are Few-Shot Summarizers: Multi-Intent Comment Generation via In-Context LearningMingyang Geng, Shangwen Wang, Dezun Dong, Haotian Wang et al.ICSE 2024 · 124 citations
Dusk over the sea between two cliffs drawn in fine vertical lines