The Code Review Journalreview desk · diff view

Review bench › Tooling & Automation

Automate the Boring Part of Code Review, Not the Thinking

Checklist entry · recorded 2026-10-14

1 Overview

Code review is one of the few engineering practices that improves both the product and the people doing the work. It catches defects, spreads knowledge, and forces authors to explain their reasoning. It is also one of the easiest practices to overload. When a reviewer opens a change and finds forty comments about spacing, import order, and a missing trailing newline, the review has already failed in spirit even if every comment is technically correct. The reviewer's attention, which is the scarce resource, has been spent on things a machine could have checked in milliseconds.

This article is about drawing a clear line between the boring part of review and the thinking part. The boring part is anything deterministic: formatting, lint rules, type errors, broken builds, obvious security patterns, and stale branches. The thinking part is everything that depends on context: whether an abstraction is right, whether an edge case matters, whether a change is safe to ship on a Friday. Automation should own the first category completely and stay out of the second. The goal is not fewer reviews or faster merges for their own sake. The goal is that when a human reads a change, every minute of their attention goes toward questions only a human can answer.

2 Why the usual advice misses the point

Most guidance about review automation falls into one of two camps, and both miss the middle. The first camp says automate everything: wire up every check, gate every merge, and let the pipeline decide. The second camp says automation is a distraction and that good reviewers just read carefully. Neither reflects how review actually breaks down in practice. The first camp produces pipelines that block on trivia and train people to click through failures. The second camp produces reviews that depend entirely on whoever happens to be available and awake.

The deeper problem is that teams rarely distinguish between checks that inform and checks that decide. A formatter that rewrites code is a decision made once by the team and enforced forever. A static analysis warning about a possible null dereference is information a human should weigh. Treating both as identical gate conditions is what makes automation feel hostile. Reviewers then either ignore the pipeline or obey it blindly, and neither behavior improves the code.

A second missed point is that automation changes reviewer behavior. Once a check exists, reviewers stop looking for that class of problem, which is usually good. But if the check is unreliable, they stop trusting the whole review process. The advice to automate is only useful when paired with advice about what to automate, how loudly to report it, and when a human should override it.

3 The core idea in practice

The core idea is a division of labor with a clear boundary. Machines handle anything that has one correct answer and can be verified without reading intent. Humans handle anything that requires understanding why the change exists. In practice this means formatting, lint rules, type checking, build and test execution, dependency scanning, and simple structural checks belong to automation. Design review, naming that carries meaning, error handling strategy, performance tradeoffs, and whether the change should exist at all belong to people.

A useful test is to ask whether a disagreement about the check could be resolved by pointing at a written rule. If yes, automate it and stop discussing it in review. If no, it is a judgment call and belongs in conversation. This test also tells you where to put your energy when a review goes long. Long reviews are usually a sign that a judgment question is being treated as a rule question, or the reverse.

The boundary is not permanent. A team might decide after several reviews that a recurring comment about logging levels is really a rule, and automate it. Or it might discover that an automated check is producing false positives and demote it to a warning. The point is that the boundary is explicit and revisitable, not accidental. Teams that write down which checks are blocking and which are advisory tend to argue less about tooling and more about code.

4 A repeatable review process

A workable process starts before the reviewer opens anything. The author runs the automated checks locally, or the pipeline runs them on the change, and the results are visible in one place. If a check fails, the author fixes it before requesting human review. This single rule removes most of the noise from the queue and signals that the author has done their part. It also means reviewers never have to be the first line of defense against a broken build.

When a human does open the change, they should see a summary of what automation already verified. That summary should be short and scannable, not a wall of output. The reviewer then focuses on the questions automation cannot answer: is this the right approach, is the change small enough to reason about, are there tests for the behavior that matters, and does the author understand the tradeoffs they made. Comments should be about those questions. If a reviewer finds themselves writing the same style comment for the third time, that is a signal to propose a rule, not to keep commenting.

The process ends with a clear decision and a short note about what was learned. If the review surfaced a recurring issue, the team turns it into a check or a documented convention. Over time the review queue gets quieter because the same problems stop arriving. That is the compounding benefit: each automated check permanently removes a category of comment from every future review.

5 Common mistakes reviewers make

The first mistake is using automation as a substitute for judgment. A green pipeline is evidence that certain checks passed, not evidence that the change is correct. Reviewers who treat a passing build as approval skip the part of review that actually requires them. The second mistake is automating rules the team never agreed on. A linter configured by one person and imposed on everyone creates resentment and inconsistent enforcement. Rules should be discussed, written down, and owned collectively before they become blocking.

The third mistake is volume. When a bot posts twenty comments on a small change, reviewers stop reading comments at all, including the ones from humans. Automation should report the smallest useful signal: a pass or fail, a count, and a link to details. Anything more competes with the human conversation it is supposed to protect.

A related failure is inconsistency over time. A check that blocks on Monday and warns on Wednesday teaches people that the rules are arbitrary. If a check matters, it should block consistently. If it does not matter enough to block, it should not pretend to. Reviewers also err by letting automation hide context. A failing test that is flaky is different from a failing test that reveals a real bug, and the pipeline often cannot tell the difference. Someone has to.

6 Tooling that helps (and where it fails)

The tooling categories that help most are unglamorous. Formatters remove style from the conversation entirely by rewriting code to a single agreed shape. Linters catch a defined set of patterns and can be tuned from noisy to useful. Type checkers catch whole classes of errors before runtime. Continuous integration runs the build and tests so that no human has to verify that the code compiles. Dependency and secret scanners catch problems that are easy to miss by eye. Each of these does one job and reports a clear result.

Where tooling fails is at the edges. Static analysis produces false positives, and a check that cries wolf gets ignored. Automated review assignment can distribute work evenly but cannot match a reviewer to the part of the codebase they understand. Reminder bots keep changes from going stale but can also nag people into rubber-stamping. None of these tools understand intent, and none of them should be allowed to approve a change on a human's behalf.

The practical stance is to use tools for detection and humans for decision. Let automation surface information, then let a person decide whether it matters. Configure checks so that blocking ones are reliable and advisory ones are clearly labeled. Review the tooling itself on a regular schedule, the same way you review code. A check that no longer earns its noise should be removed, and a check that keeps catching real problems should be trusted more.

7 Frequently asked questions

How much of review should be automated? There is no fixed percentage, and anyone who offers one is guessing. The right amount is whatever removes deterministic work without removing judgment. If reviewers are still arguing about formatting, automate more. If they are approving changes they do not understand because the pipeline is green, automate less or make the pipeline's limits clearer.

Should automated checks be able to block a merge? Yes, for rules the team has agreed on and that produce reliable results. Blocking is a promise that the rule matters. Breaking that promise with flaky or noisy checks erodes trust faster than having no check at all. Advisory checks are fine too, as long as everyone knows they are advisory.

What about small teams with no dedicated tooling budget? Start with a formatter and a test runner in continuous integration. Those two cover a large share of routine review comments. Add checks one at a time, each tied to a problem the team actually experiences. Tooling adopted because it is popular tends to be abandoned; tooling adopted because it solved a specific annoyance tends to stick.

How do we know automation is working? Reviews get shorter and more substantive, comments shift from style to design, and the same complaint stops appearing. If reviews are getting longer or reviewers seem disengaged, the automation is probably misconfigured or doing too much. Treat that as a signal to adjust, not as proof that automation was a mistake.