Review Code for Correctness, Risk and Maintainability

8 steps · about 3 h · Intermediate

  1. Set the standard for approving a change (guide, Google Engineering Practices, 20 min)

    Balance forward progress with the long-term health of the codebase.

  2. 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.

  3. 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.

  4. Keep review turnaround short (guide, Google Engineering Practices, 15 min)

    Reduce blocked work and context switching without lowering the quality bar.

  5. Write actionable review comments (guide, Google Engineering Practices, 25 min)

    Explain the concern, its impact and a useful direction without making feedback personal.

  6. Resolve disagreement constructively (guide, Google Engineering Practices, 20 min)

    Use technical evidence, shared standards and escalation paths when author and reviewer disagree.

  7. Add security-focused review questions (guide, OWASP, 30 min)

    Look for trust-boundary, input-handling, authentication and sensitive-data risks alongside functional behavior.

  8. 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.