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
- 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]
- 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
- Null, empty and zero are handledA missing member, an empty list, a
0read 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 of0.0withif rate:.
IonWarp Code Review checks this - 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 - 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
- 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 - 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
- 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 - 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 - 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
- A test fails without the changeAnd the test really runs: one Sentry test patched
time.sleepto return at once, then slept to wait for a worker.
IonWarp Code Review checks this - 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.
| Kind | Issues | Real example |
|---|---|---|
| Logic bug | Issues: 94 (59%) | Example: Cal.com let only users who were both team admin and owner pass a check meant for either. |
| Concurrency | Issues: 14 (9%) | Example: Cal.com ran refunds and calendar deletions in forEach(async …), never awaited. |
| API contract | Issues: 13 (8%) | Example: Keycloak returned null from a method whose Javadoc says it never does. |
| Security | Issues: 11 (7%) | Example: Discourse built an admin SQL query with string interpolation. |
| Docs | Issues: 9 (6%) | Example: Keycloak’s Lithuanian messages file got an Italian translation. |
| Data | Issues: 7 (4%) | Example: Sentry keyed a cache on hash(), which differs between worker processes. |
| Performance | Issues: 6 (4%) | Example: Sentry queried check-ins it already had in memory. |
| Test gap | Issues: 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]
| Language | Project | Known issues | Most caught | IonWarp |
|---|---|---|---|---|
| Python | Project: Sentry, 10 PRs | Known issues: 33 | Most caught: 20 (Qodo v2) | IonWarp: 17 |
| Java | Project: Keycloak, 10 PRs | Known issues: 25 | Most caught: 15 (CodeRabbit) | IonWarp: 11 |
| TypeScript | Project: Cal.com, 10 PRs | Known issues: 37 | Most caught: 29 (CodeRabbit) | IonWarp: 17 |
| Go | Project: Grafana, 10 PRs | Known issues: 25 | Most caught: 16 (Qodo v2) | IonWarp: 14 |
| Ruby | Project: Discourse, 10 PRs | Known issues: 38 | Most 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.
- Every promise is awaited.
forEach(async …)does not wait: Cal.com’s refunds and deletions ran unawaited. Usefor…ofwithawait, orPromise.all. - Optional values are checked before use. Cal.com destructured a calendar from a value that can be null or empty.
- Parse results are unwrapped. Zod’s
safeParsereturns{ success, data }; Cal.com stored that object as the credential. - Case-insensitive data is compared that way. Cal.com lowercased the blocked-email list but not the guest emails.
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.
- Shared state is locked. Two goroutines could build the same index at once; run
go test -raceon concurrent code. - Check-then-act is atomic. Concurrent requests could pass a device limit together and create more than it allows.
- Nil is handled. A middleware panicked on a nil request.
- Flags return what they say. A feature check always returned false, turning the feature off for everyone.
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]
- nil is handled.
self.host.sub!crashed on a nil host, and a missingTopicUsercrashed another. Use&.or a guard. - SQL takes bound parameters. An admin controller interpolated values with
#{}. - Emails compare without case. A blocked address got through with capitals.
- URLs from settings are validated.
open(SiteSetting.feed_polling_url)fetched any URL.
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]
| Reviewer | Caught | Share | F1, all 50 PRs | False alarms, all 50 PRs |
|---|---|---|---|---|
| Qodo v2 | Caught: 98 of 158 | Share: 62% | F1, all 50 PRs: 58.5% | False alarms: 79 |
| CodeRabbit | Caught: 94 of 158 | Share: 59% | F1, all 50 PRs: 42.1% | False alarms: 194 |
| Greptile v4.1 | Caught: 81 of 158 | Share: 51% | F1, all 50 PRs: 51.1% | False alarms: 78 |
| IonWarp · DeepSeek V4.1 Flash | Caught: 77 of 158 | Share: 49% | F1, all 50 PRs: 49.2% | False alarms: 78 |
| Cursor Bugbot | Caught: 74 of 158 | Share: 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]
| Check | Tool | Who still decides |
|---|---|---|
| Formatting and style | Tool: A formatter and linter in CI (Prettier, Ruff, gofmt, RuboCop, Checkstyle) | Who still decides: Nobody: it fails the build |
| Types | Tool: The compiler or a type checker (tsc, mypy, javac) | Who still decides: Nobody |
| Vulnerable dependencies | Tool: Dependabot alerts[8] | Who still decides: Whoever owns the upgrade |
| Committed secrets | Tool: GitHub secret scanning or gitleaks[9][10] | Who still decides: Rotate the key, then fix |
| Logic, callers, missing changes | Tool: An AI reviewer, such as IonWarp, as the first pass | Who still decides: A person, on the Approve button |

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 trueSources
Sources checked : each one says the day we read it.
- Martian on GitHub, code-review-benchmark, Core set: 50 pull requests and their answer key, revision e616e849 (MIT), read .
- Carnegie Mellon SEI (2006), PSP assignment kit for design and code review checklists, read .
- Google, What to look for in a code review, read .
- Google, Small CLs, read .
- IonWarp, What is code review? 267 IonWarp findings graded by two AI readers, 24 to 29 September 2026, read .
- IonWarp, Code Review benchmark, pull request by pull request (release 2026-10-12), read .
- Winding Labs on GitHub, ai-code-review-benchmark: every row, pull request and verdict (CC BY 4.0), read .
- GitHub Docs, About Dependabot alerts, read .
- GitHub Docs, About secret scanning, read .
- Gitleaks on GitHub, gitleaks, read .
- GitHub Docs, Creating a pull request template for your repository, read .

