Google CodeReview指南

Google有一系列通用的工程实践,涵盖了所有语言和项目,包括代码审查的指导原则。这里有两套文档——代码审查者指南和变更作者指南,详细阐述了如何进行有效的代码审查,以及处理审查反馈的方法。此外,还提到了CL(变更列表)在审查过程中的使用,以及LGTM(看起来没问题)这一批准用语。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Google Engineering Practices Documentation

Google has many generalized engineering practices that cover all languages and all projects. These documents represent our collective experience of various best practices that we have developed over time. It is possible that open source projects or other organizations would benefit from this knowledge, so we work to make it available publicly when possible.

Currently this contains the following documents:

  • Google’s Code Review Guidelines, which are actually two separate sets of documents:
    • The Code Reviewer’s Guide
    • The Change Author’s Guide

How to do a code review

The pages in this section contain recommendations on the best way to do code reviews, based on long experience. All together they represent one complete document, broken up into many separate sections. You don’t have to read them all, but many people have found it very helpful to themselves and their team to read the entire set.

  • The Standard of Code Review
  • What to Look For In a Code Review
  • Navigating a CL in Review
  • Speed of Code Reviews
  • How to Write Code Review Comments
  • Handling Pushback in Code Reviews

See also the CL Author’s Guide, which gives detailed guidance to developers whose CLs are undergoing review.

Terminology

There is some Google-internal terminology used in some of these documents, which we clarify here for external readers:

  • CL: Stands for “changelist”, which means one self-contained change that has been submitted to version control or which is undergoing code review. Other organizations often call this a “change”, “patch”, or “pull-request”.
  • LGTM: Means “Looks Good to Me”. It is what a code reviewer says when approving a CL.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值