Guides

Code review checklist: 12 checks for every pull request

A code review checklist is what a reviewer checks on every pull request: the change does what it says, breaks nothing elsewhere, fails safely, stays secure and fast, is tested, and leaves the docs true. The 12 checks below are built from 158 known bugs in 50 open-source pull requests.[1]

This is the reviewer’s list. The author’s, done before asking for review, is the pull request checklist. Python and Java have their own pages, TypeScript, Go and Ruby are below, and security has the secure code review checklist.

Checked

What should a code review checklist include?

A code review checklist should include 12 checks in five groups: intent, correctness, the code the change affects elsewhere, failure and security, and tests and docs. The chip on a check names the IonWarp agent that runs it on every pull request. Like the checklists in Carnegie Mellon’s PSP course, it is built from real defects.[2]

Intent

  1. The change does what the description saysRead the description and linked issue first, then hold the diff to them. Google’s guide asks first whether the change is well designed and good for its users.[3]
  2. It is one readable changeA refactor, a rename and a behavior change are three reviews. Google calls 100 changed lines usually reasonable and 1,000 usually too large,[4] and asks for clear names and no more complexity than the change needs.[3]

Correctness

  1. Null, empty and zero are handledA missing member, an empty list, a 0 read as “not set”: by our keyword count, 28 of the 94 logic bugs in the answer key involve a null, missing or empty value.[1] Sentry skipped a real sample rate of 0.0 with if rate:.
    IonWarp Code Review checks this
  2. Conditions say what they meanFlipped comparisons, && where || was meant, off-by-one ranges. Cal.com let only users who were both team admin and owner pass a check meant for either.
    IonWarp Code Review checks this
  3. Shared state is safe under concurrencyCheck-then-act on shared data, async callbacks inside forEach, counters read and then written back. Concurrency is the second-largest kind of known bug below.
    IonWarp Code Review checks this

Beyond the diff

  1. Every caller still worksSearch for the callers of anything renamed, removed or retyped, and for the second read path. Of 17 real merge blockers in 267 graded IonWarp findings, 12 sat outside the diff.[5]
    IonWarp Code Review checks this
  2. Contracts and duplicatesReturn types, API responses and documented guarantees still hold, and no second copy of existing code appeared. Keycloak returned null where its Javadoc promised a count.
    IonWarp AI Architecture checks this

Failure and security

  1. Errors reach someoneNo empty catch, no unhandled promise, a log line with the request id where something can fail, and no secret in that log.
    IonWarp Log & Errors checks this
  2. Access, input and secrets are checkedEvery route checks who is asking, input reaches SQL, shells and HTML only escaped, and no token sits in code or logs. The full list is the secure code review checklist.
    IonWarp Security Review checks this
  3. No query runs in a loopLists load related rows in one query, and every list read has a limit.
    IonWarp API Performance checks this

Tests and docs

  1. A test fails without the changeAnd the test really runs: one Sentry test patched time.sleep to return at once, then slept to wait for a worker.
    IonWarp Code Review checks this
  2. Docs still match the codeDocstrings, READMEs and agent instructions (CLAUDE.md, AGENTS.md) the change made wrong.
    IonWarp Docs Review checks this

Which bugs does a code review need to catch most?

A code review needs to catch plain logic bugs most: 94 of the 158 known issues in the answer key for 50 open-source pull requests are logic bugs, then concurrency (14), API contracts (13) and security (11).[1] The pull requests come from Sentry, Keycloak, Cal.com, Grafana and Discourse, ten from each. Each row has a real example.

Known issues in the benchmark’s 50 pull requests, by kind
KindIssuesReal example
Logic bugIssues: 94 (59%)Example: Cal.com let only users who were both team admin and owner pass a check meant for either.
ConcurrencyIssues: 14 (9%)Example: Cal.com ran refunds and calendar deletions in forEach(async …), never awaited.
API contractIssues: 13 (8%)Example: Keycloak returned null from a method whose Javadoc says it never does.
SecurityIssues: 11 (7%)Example: Discourse built an admin SQL query with string interpolation.
DocsIssues: 9 (6%)Example: Keycloak’s Lithuanian messages file got an Italian translation.
DataIssues: 7 (4%)Example: Sentry keyed a cache on hash(), which differs between worker processes.
PerformanceIssues: 6 (4%)Example: Sentry queried check-ins it already had in memory.
Test gapIssues: 4 (3%)Example: A Sentry test slept to wait for a worker after time.sleep was patched to return at once.

What should you check in each language?

In each language, check its own traps on top of the 12 checks: zeros read as missing in Python, Optional.get() in Java, unawaited promises in TypeScript, goroutine races in Go and nil in Ruby. The table counts each project’s known issues and the most any AI reviewer caught.[6]

Known issues and AI catches by language
LanguageProjectKnown issuesMost caughtIonWarp
PythonProject: Sentry, 10 PRsKnown issues: 33Most caught: 20 (Qodo v2)IonWarp: 17
JavaProject: Keycloak, 10 PRsKnown issues: 25Most caught: 15 (CodeRabbit)IonWarp: 11
TypeScriptProject: Cal.com, 10 PRsKnown issues: 37Most caught: 29 (CodeRabbit)IonWarp: 17
GoProject: Grafana, 10 PRsKnown issues: 25Most caught: 16 (Qodo v2)IonWarp: 14
RubyProject: Discourse, 10 PRsKnown issues: 38Most caught: 22 (Qodo v2)IonWarp: 18

What should a TypeScript code review check?

A TypeScript code review should check that every promise is awaited, optional values are narrowed before use, and parsed results are unwrapped. All four checks come from Cal.com pull requests in the benchmark.

What should a Go code review check?

A Go code review should check shared maps and caches for races, check-then-act steps for atomicity, and nil requests and errors. These four come from Grafana pull requests, mostly Go.

What should a Ruby code review check?

A Ruby code review should check for nil before every method call, bound SQL parameters, and case-insensitive comparisons of emails. These four come from Discourse pull requests, where seven of the benchmark’s 11 security bugs sit.[1]

How many of these bugs do AI code reviewers catch?

AI code reviewers caught at most 98 of the 158 known issues (62%, Qodo v2); IonWarp caught 77 and is 4th of 5 on F1. So keep the checklist: let an AI reviewer take the first pass, and a person approve.[6][7]

Each AI reviewer on the 50 pull requests
ReviewerCaughtShareF1, all 50 PRsFalse alarms, all 50 PRs
Qodo v2Caught: 98 of 158Share: 62%F1, all 50 PRs: 58.5%False alarms: 79
CodeRabbitCaught: 94 of 158Share: 59%F1, all 50 PRs: 42.1%False alarms: 194
Greptile v4.1Caught: 81 of 158Share: 51%F1, all 50 PRs: 51.1%False alarms: 78
IonWarp · DeepSeek V4.1 FlashCaught: 77 of 158Share: 49%F1, all 50 PRs: 49.2%False alarms: 78
Cursor BugbotCaught: 74 of 158Share: 47%F1, all 50 PRs: 51.4%False alarms: 56

Caught means the judge matched a reviewer’s comment to a known issue; false alarms are comments that matched none, over all 50 pull requests. Every row and PR is on the Code Review benchmark.

What should tools check so reviewers don’t have to?

Formatting, lint rules, types, vulnerable dependencies and committed secrets should be checked by tools in CI, so the reviewer spends the review on intent, logic and design. Google’s guide makes style points the style guide doesn’t require optional nits.[3]

Which checks tools can run
CheckToolWho still decides
Formatting and styleTool: A formatter and linter in CI (Prettier, Ruff, gofmt, RuboCop, Checkstyle)Who still decides: Nobody: it fails the build
TypesTool: The compiler or a type checker (tsc, mypy, javac)Who still decides: Nobody
Vulnerable dependenciesTool: Dependabot alerts[8]Who still decides: Whoever owns the upgrade
Committed secretsTool: GitHub secret scanning or gitleaks[9][10]Who still decides: Rotate the key, then fix
Logic, callers, missing changesTool: An AI reviewer, such as IonWarp, as the first passWho still decides: A person, on the Approve button
The IonWarp app’s Bugs screen in the sample Acme workspace: 16 bugs caught on pull requests, 1 escaped, 3 issues open
What the IonWarp app showsThe Bugs screen, in the sample workspace: each bug its agents caught on a pull request, next to the ones that got past.

Is there a code review checklist template?

Yes, a code review checklist template is below: paste the Markdown into .github/pull_request_template.md, and every reviewer sees the same 12 checks on every pull request.[11]

## Review checklist
- [ ] Does what the description says
- [ ] One readable change: small, clear names, no extra complexity
- [ ] Null, empty and zero handled
- [ ] Conditions say what they mean
- [ ] Shared state safe under concurrency
- [ ] Every caller of a changed function still works
- [ ] Contracts hold; no second copy of existing code
- [ ] Errors are logged with context, never swallowed
- [ ] Access, input and secrets checked
- [ ] No query in a loop; every list has a limit
- [ ] A test fails without the change
- [ ] Docs, docstrings and agent instructions still true

Sources

Sources checked : each one says the day we read it.

  1. Martian on GitHub, code-review-benchmark, Core set: 50 pull requests and their answer key, revision e616e849 (MIT), read .
  2. Carnegie Mellon SEI (2006), PSP assignment kit for design and code review checklists, read .
  3. Google, What to look for in a code review, read .
  4. Google, Small CLs, read .
  5. IonWarp, What is code review? 267 IonWarp findings graded by two AI readers, 24 to 29 September 2026, read .
  6. IonWarp, Code Review benchmark, pull request by pull request (release 2026-10-12), read .
  7. Winding Labs on GitHub, ai-code-review-benchmark: every row, pull request and verdict (CC BY 4.0), read .
  8. GitHub Docs, About Dependabot alerts, read .
  9. GitHub Docs, About secret scanning, read .
  10. Gitleaks on GitHub, gitleaks, read .
  11. GitHub Docs, Creating a pull request template for your repository, read .

FAQ

Quick answers

What is a code review checklist?

A list of what a reviewer checks on every pull request: intent, correctness, code the change affects elsewhere, errors, security, performance, tests and docs. It keeps reviews consistent and stops the same kind of bug getting through twice.

What should you look for in a code review?

Whether the change does what it says, handles null, empty and zero, keeps every caller working, logs its errors, checks access and input, avoids queries in loops, has a test that fails without it, and leaves the docs true.

Why use a code review checklist?

So every reviewer looks for the same things, and the bugs your team has shipped before are looked for every time. Carnegie Mellon’s PSP course tells engineers to build a review checklist designed to find the defects they make.

How many items should a code review checklist have?

Few enough to run on every pull request. These 12 cover every kind of known bug in the benchmark’s answer key; style, formatting and types belong in CI, not on the list. Add a line when a bug gets past review, and drop one that never catches anything.

How should a reviewer write up what the checklist finds?

On the line, about the code rather than the person, with the reason, and marked by weight: a blocker, or “Nit:” for an optional point, as Google’s guide does. More on running the review is in code review best practices.

Is a code review checklist the same as a pull request checklist?

No. The pull request checklist is the author’s, done before asking for review. The code review checklist is the reviewer’s, done while reading the change.

Can AI code review replace a code review checklist?

Not yet. On the same 50 pull requests no AI reviewer caught every known issue, so use one as the first pass and keep a person on the Approve button.

Is there a code review checklist for each language?

Yes. Python and Java have their own pages; TypeScript, Go and Ruby are on this page. Each is built from that language’s real bugs in the benchmark.

Checklists by language and topic

Checklists by language and topic

Run the checklist on every pull request.

Get started

See pricing

By , Co-founder, IonWarp. Published .

Co-founder of Segment (acquired by Twilio, 2020). Builds IonWarp at Winding AI, Inc. See something wrong? Send us a correction.