1 Overview
Code review has quietly become the place where every imperfection in a codebase is expected to be caught. A reviewer opens a change, sees a long method, a duplicated conditional, a slightly misleading name, and a class that has grown too large, and feels obligated to comment on all of it. The intent is good. The outcome is often the opposite of what the team wants. When every smell is treated as a blocker, reviews slow to a crawl, authors become defensive, and the changes that genuinely threaten the system get buried under a pile of stylistic objections.
A code smell is a signal, not a verdict. It suggests that something in the design may cause friction later, but it does not prove that the current change is wrong. Some smells are worth fixing immediately because they will compound quickly. Others are tolerable in context, especially in code that is stable, rarely touched, or scheduled for replacement. The health of a codebase depends less on the absence of smells and more on whether the team can distinguish between the ones that matter now and the ones that can wait.
This article argues for a triage mindset in review. Instead of blocking on every imperfection, reviewers should rank what they find by risk, cost, and timing, then act accordingly. That does not mean lowering standards. It means directing standards at the places where they protect the system most.
2 Why the usual advice misses the point
Much of the popular guidance on code review treats smells as if they were bugs. Lists of smells circulate widely, and reviewers are encouraged to flag each one they recognize. The problem is that these lists describe patterns, not priorities. A long parameter list in a rarely used helper and a long parameter list in a core payment path are not the same risk, yet a checklist treats them identically. When reviewers apply the same severity to every item, they flatten the signal that makes review useful.
The usual advice also ignores the economics of change. Every blocking comment has a cost: the author must context switch, the reviewer must re-review, and the change sits unmerged while both wait. If the comment addresses a smell that will not cause a problem for months, the team has paid a real cost for a hypothetical benefit. Multiply that across dozens of reviews per week and the drag becomes visible in delivery speed and reviewer fatigue.
There is a deeper issue. When reviewers block on style and minor structure, authors learn to optimize for passing review rather than for improving design. They split changes into tiny pieces, avoid touching messy areas, and stop proposing bold refactors because each one invites a long argument. The codebase slowly freezes. The smells that were once minor become entrenched because nobody wants to open the conversation. Blocking everything, in other words, can produce a codebase that is superficially tidy and structurally stagnant.
3 The core idea in practice
The core idea is triage: sort what you find during review into categories that determine how you respond. One useful split is between smells that are local and cheap to fix, smells that are structural and expensive, and smells that are contextual and debatable. Local smells, such as a confusing name or a redundant condition, can be noted and fixed quickly, often without blocking the change. Structural smells, such as a class taking on a second responsibility or a dependency pointing the wrong way, deserve a conversation because they shape future work. Contextual smells, such as a long method in a script that runs once a quarter, may not be worth any action at all.
A second useful distinction is between smells introduced by this change and smells that already existed. Reviewers should focus on what the change makes worse. If an author touches a file and leaves a pre-existing smell untouched, that is usually acceptable. If the change deepens the smell, that is a different matter. This keeps review scoped to the change in front of you and prevents the common trap of turning every pull request into a refactoring project.
Finally, consider reversibility. A smell that is easy to fix later can be deferred with a note. A smell that will be expensive to unwind, such as a leaked abstraction or a hidden global dependency, is worth blocking now. The question is not whether the smell exists but what it costs to fix today versus in six months. That framing turns review from a checklist exercise into a judgment about risk.
4 A repeatable review process
Start by reading the change for intent before reading it for detail. What is this change trying to accomplish, and does the approach make sense at that level? Many smells disappear from concern once you understand the intent, and many real problems become obvious before you reach the line-by-line pass. Reviewers who jump straight to the diff often flag local issues while missing a wrong direction in the design.
Next, separate comments into three buckets: must fix, should discuss, and optional. Must-fix items are correctness problems, security issues, and structural changes that will be costly to reverse. Should-discuss items are design questions where you want the author's reasoning. Optional items are style and preference, and they should be clearly labeled as such so the author can ignore them without friction. This labeling alone reduces the emotional weight of review because authors can see which comments are binding and which are not.
Then decide what to block on. A useful rule is to block only when merging would make the system harder to change or operate in a way that is expensive to undo. Everything else can be a follow-up task, a note in the change description, or a conversation after merge. Finally, close the loop. If you defer a smell, record it somewhere the team will see it, or accept that it is not important enough to track. Deferring without recording is how small smells become permanent fixtures.
5 Common mistakes reviewers make
The most common mistake is treating personal preference as a defect. A reviewer who dislikes a particular pattern will flag it every time, regardless of context, and the author learns to comply rather than to think. Over time, the codebase reflects the reviewer's taste rather than the team's needs. The fix is to distinguish between standards the team has agreed on and opinions that are simply yours. If it is the latter, say so and move on.
A second mistake is reviewing the code you wish had been written instead of the code in front of you. This shows up as requests to restructure a change that is otherwise correct, or to adopt a pattern the reviewer prefers. It is demoralizing for authors and it slows delivery without improving the system. Reviewers should ask whether the change meets its goal and fits the surrounding code, not whether it matches an imagined ideal.
A third mistake is letting automated warnings set the agenda. Linters and static analysis tools are good at finding certain classes of issues, but they cannot weigh risk. When a tool reports dozens of minor warnings, reviewers sometimes treat the count as a measure of quality and block until it reaches zero. That inverts the priority: the tool should inform judgment, not replace it. Reviewers who outsource their attention to a warning list often miss the design problems that no tool can detect.
6 Tooling that helps (and where it fails)
Automated analysis is genuinely useful in review when it handles the mechanical and repetitive checks. Formatting, unused imports, obvious null risks, and simple complexity thresholds can be caught before a human ever looks at the change. This frees reviewers to spend their attention on design, naming, boundaries, and the questions that require context. The best use of tooling in review is to remove the noise that would otherwise consume the first ten minutes of every pass.
Where tooling fails is in judgment. A static analyzer can tell you that a method is long, but it cannot tell you whether the length is a problem in this codebase, in this module, or at this stage of the product. It can flag duplication, but it cannot tell you whether the duplication is accidental or a deliberate trade-off. It can measure complexity, but it cannot measure whether the complexity is essential to the domain. Treating tool output as a verdict rather than a prompt is the fastest way to make review feel arbitrary.
A practical approach is to configure tools to report at a level that matches the team's actual standards, then treat their output as input to triage rather than as a gate. If a tool flags something that the team has decided is acceptable, adjust the tool or suppress the rule with a comment explaining why. If a tool flags something the team cares about, make it a must-fix and let the tool enforce it consistently. The goal is alignment between what the tool checks and what the team actually values, not maximum warning coverage.
7 Frequently asked questions
Does triage mean ignoring code smells entirely? No. It means responding to them in proportion to their risk. Some smells should be fixed immediately, some should be discussed, and some should be noted and left alone. The discipline is in making that call deliberately rather than defaulting to blocking everything.
How do I know which smells are worth blocking on? Ask what happens if the change merges as-is. If the answer is that the system becomes harder to change, harder to operate, or harder to reason about in a way that will be expensive to undo, block. If the answer is that the code will be slightly less tidy but still correct and maintainable, do not block. The cost of reversal is the best guide.
What if my team disagrees about which smells matter? That disagreement is useful. Write down the categories the team agrees on, such as correctness, security, and structural direction, and treat everything else as a discussion rather than a gate. Revisit the list periodically as the codebase evolves. A shared standard that is narrower and actually enforced is more valuable than a broad one that everyone interprets differently.
Will this approach let the codebase degrade? Only if deferral becomes avoidance. The safeguard is to record deferred smells where the team will see them and to revisit them when the surrounding code is next touched. Triage without follow-through is just neglect with better vocabulary.