Review Code for Correctness, Risk and Maintainability
8 steps · about 3 h · Intermediate
- Set the standard for approving a change (guide, Google Engineering Practices, 20 min)
Balance forward progress with the long-term health of the codebase.
- Know what to examine in a review (guide, Google Engineering Practices, 30 min)
Check design, behavior, complexity, tests, names, comments, style and documentation in a repeatable order.
- Navigate a change efficiently (guide, Google Engineering Practices, 20 min)
Start with the description and main files, then follow the control and data flow through supporting code.
- Keep review turnaround short (guide, Google Engineering Practices, 15 min)
Reduce blocked work and context switching without lowering the quality bar.
- Write actionable review comments (guide, Google Engineering Practices, 25 min)
Explain the concern, its impact and a useful direction without making feedback personal.
- Resolve disagreement constructively (guide, Google Engineering Practices, 20 min)
Use technical evidence, shared standards and escalation paths when author and reviewer disagree.
- Add security-focused review questions (guide, OWASP, 30 min)
Look for trust-boundary, input-handling, authentication and sensitive-data risks alongside functional behavior.
- Make changes small enough to review well (guide, Google Engineering Practices, 20 min)
Recognize when a large change should be split so reviewers can reason about it accurately.