All posts
workflowteams

A Code Review Checklist I Actually Use

A short, practical list for reviewing pull requests without nitpicking or rubber-stamping.

Muhamad Choirul Adam 2 min readPhoto: Unsplash

Most review advice is either "be nice" or a fifty-item list nobody reads. This is the short version I keep open while reviewing.

Before opening the pull request

Reviewers shouldn't have to do the author's homework. Before asking for a review:

  • The description says why, not just what
  • It does one thing; unrelated cleanup goes in its own PR
  • Tests cover the behavior that changed
  • Screenshots or a short clip for any UI change

What to look for

Read in this order. Each step is cheaper to fix than the next one.

OrderQuestionCost if missed
1Is this the right change at all?Highest
2Are the boundaries and names right?High
3Does it handle the failure cases?Medium
4Is the code itself clear?Low

Style comments come last, and ideally from a linter instead of a person.1

Questions beat commands

"Why not return early here?" invites a conversation. "Return early here." starts an argument. Use imperatives for everything Save direct requests for real bugs.

If you'd be uncomfortable maintaining it in six months, say so now. That's the whole job.

Keep the loop fast

Rendering diagram…

A review that takes two days costs more than the bugs it catches. I try to respond within a few working hours, even if it's only "looking at this tomorrow morning."

Small PRs make this possible. A 200-line change gets a careful read; a 2,000-line change gets a skim and an approval.2

Find PRs waiting on you
gh pr list --search "review-requested:@me" --state open

Footnotes

  1. Formatting and import order are handled by Biome in this repo, so reviews never discuss them. ↩

  2. There's no magic number, but if a PR needs a meeting to explain, it's probably two PRs. ↩