1 Overview
Code smells are surface indications that something in the design may cause trouble later. Duplicated logic, long methods, deep nesting, unclear names, and tangled dependencies all qualify. They are heuristics, not verdicts. A pull request that introduces a smell is not automatically bad, and one that avoids smells is not automatically good. The real question is whether the smell signals a risk that outweighs the cost of blocking the change right now. That framing matters because it moves the conversation away from taste and toward consequences. A smell is evidence, and like any evidence it has to be weighed against everything else you know about the change, the code around it, and the people who will maintain it.
Reviewers often face this decision under time pressure. A change may be correct, tested, and urgently needed, yet it adds a function that is already too long or copies a block that exists elsewhere. Blocking it protects the codebase in theory but delays value in practice. Approving it keeps momentum but may normalize debt. Neither choice is universally right, which is why teams need a shared way to reason about severity rather than a blanket rule. The absence of that shared reasoning is what turns ordinary review comments into arguments about principle, where both sides can be technically correct and still leave the author frustrated and the reviewer drained.
This article treats smells as inputs to a judgment call. It covers why simple policies fail, how to weigh a smell against context, a repeatable process for deciding, mistakes that erode trust, and where tooling helps or misleads. The goal is not to eliminate smells on sight but to make blocking decisions deliberate, consistent, and explainable to the author. When a reviewer can say plainly why a smell matters here and not there, the author learns something transferable. When they cannot, the author learns only that review is unpredictable, and that lesson is far more expensive than any single smell.
2 Why the usual advice misses the point
The common guidance splits into two camps. One says never block on style or structure because it slows delivery and demoralizes authors. The other says always block because small problems compound into unmaintainable systems. Both are too absolute. A smell in a rarely touched utility has different consequences than the same smell in a module every team depends on. The advice ignores frequency of change, blast radius, and the cost of a follow-up fix. It also ignores timing, because the same smell introduced during a calm week and during an incident carry very different weights, even though the code looks identical in the diff.
Another flaw is treating all smells as equal. A misleading name is cheap to fix and easy to explain. A hidden coupling between two services can cause outages. Lumping them together forces reviewers into all-or-nothing decisions, which pushes them toward either nitpicking or rubber-stamping. It also trains authors to optimize for passing review rather than for clarity. When the stakes of every comment feel the same, authors learn to treat all feedback as noise to be minimized, and the genuinely important comments lose their force along with the trivial ones.
A third problem is measurement. When teams track smell counts as a quality score, reviewers start blocking to move the number, and authors start hiding structure to avoid attention. The metric becomes a target and stops reflecting reality. The usual advice rarely distinguishes between a smell that indicates a design problem and one that is merely a stylistic preference. Without that distinction, blocking decisions feel arbitrary, and arbitrary decisions damage the trust that review depends on. Trust is the real currency here, and it is spent every time a reviewer blocks without being able to articulate the risk in terms the author can act on.
3 The core idea in practice
Treat a smell as a question, not a charge. When you spot one, ask what risk it creates and whether that risk is worth a delay. Three factors usually decide it. First, how likely is this code to change again soon? Frequently edited code rewards cleanup because the next author pays the cost. Second, how wide is the blast radius? A smell in shared infrastructure affects more people than one in a leaf module. Third, how hard is the fix? A rename is trivial; untangling dependencies may be a project of its own. Asking these three questions takes seconds and almost always narrows the disagreement to something concrete.
Weigh those against the cost of blocking. If the change is urgent, small, and the smell is contained, approving with a clear follow-up note is often better than forcing a rewrite under deadline. If the smell sits in a hot path, touches shared contracts, or will mislead the next reader, blocking is reasonable. The key is to say which factor drove the decision so the author learns the team's reasoning rather than guessing at hidden standards. An unexplained block teaches nothing except that the reviewer had the authority to stop the work.
Consistency matters more than severity. Two reviewers who block on the same class of smell in the same context teach a predictable norm. One reviewer who blocks on naming while another ignores it teaches authors that review is a lottery. Document a few examples of block-worthy and non-blocking smells, and revisit them as the codebase evolves. The point is not to codify every case but to make the common ones predictable. Predictability lets authors make good choices before they even open a pull request, which is where most of the real improvement happens.
4 A repeatable review process
Start by reading the change for intent before scanning for smells. Understanding what the author is trying to do prevents you from flagging structure that is appropriate for the problem. Once you grasp the intent, note smells that affect correctness, comprehension, or future change. Separate them from preferences about formatting or naming that a formatter or linter could handle automatically. Anything a machine can decide should never become a human argument, because it consumes attention that belongs to design questions the machine cannot see.
Next, classify each noted smell by the three factors: change frequency, blast radius, and fix cost. If a smell scores high on the first two and low on the third, it is a strong candidate to block. If it scores low on the first two, mention it as a suggestion and let the author decide. For anything in between, ask a question instead of issuing a verdict. Questions invite context you may not have, such as a deadline or a planned refactor in the same area. They also keep the author in the role of owner rather than defendant, which tends to produce better fixes and less resistance.
Then communicate the decision with the reason attached. Say that you are blocking because this duplication will spread across three callers, or that you are approving because the smell is isolated and a follow-up ticket already exists. Finally, record recurring smells that keep appearing so the team can address them in a design discussion or an automated check rather than in every pull request. Over time, this shifts effort from repeated review arguments to systemic fixes. The process is not meant to be rigid; it is meant to be repeatable enough that two reviewers reach similar conclusions without needing to negotiate from scratch each time.
5 Common mistakes reviewers make
The first mistake is blocking on every smell. It feels rigorous, but it turns review into a gate that punishes authors for touching imperfect code. When a change improves a file overall, blocking on a pre-existing smell that the author did not introduce is especially unfair. Review the diff, not the entire file, and judge whether the change makes things better or worse. A reviewer who demands cleanup of untouched lines is effectively taxing every small improvement, and authors respond by making fewer small improvements.
The second mistake is ignoring context. A reviewer who blocks a long method in a prototype or a migration script wastes everyone's time. The same reviewer who approves a tangled dependency in a core library because the tests pass misses the real risk. Context includes urgency, the author's experience, and whether the code is expected to live for years or be deleted next sprint. It also includes what the author already knows and has planned, which is exactly the information a verdict-style comment tends to suppress.
The third mistake is using smells as a scorecard. Counting how many smells an author introduced, or comparing reviewers by how often they block, distorts behavior. People optimize for the number, not the outcome. A related error is failing to explain the block. A comment that says this is a smell without saying why it matters leaves the author to guess and invites resentment. Explain the risk, suggest a direction, and let the author own the fix. The best review comments read as a colleague thinking out loud about consequences, not as a judge reading a charge sheet.
6 Tooling that helps (and where it fails)
Automated analysis is excellent at catching mechanical issues: unused variables, inconsistent formatting, obvious duplication, and complexity thresholds. Running these checks before human review removes noise and lets reviewers focus on design and intent. When a tool flags a smell, it provides a consistent signal that does not depend on who happens to review the change. That consistency is valuable for teaching norms and for catching regressions early. It also removes a common source of friction, because an author is far less likely to argue with a rule that applies to everyone equally than with a reviewer's personal preference.
Tooling fails when teams treat its output as a verdict. A complexity score cannot know that a function is long because it encodes a state machine that is clearer in one place. A duplication detector cannot tell whether two similar blocks will evolve together or diverge. Tools also tend to flag the same issues repeatedly, which trains reviewers to ignore them. Configure thresholds thoughtfully and review the rules periodically rather than accepting defaults forever. A rule that fires on every change without ever leading to a fix is not protecting anything; it is teaching people to scroll past warnings.
The best use of tooling is as a conversation starter, not a gate. Let it surface candidates, then apply human judgment about risk and context. If a rule produces mostly false positives, weaken or remove it. If a rule catches real problems consistently, keep it and document why. Tools should reduce the number of smell debates in review, not replace the reasoning that makes those debates productive. When a tool and a reviewer disagree, that disagreement is often the most useful signal available, because it points at exactly the place where context and convention diverge.
7 Frequently asked questions
Should any smell ever block a pull request? Yes, when it creates a concrete risk that outweighs the delay. Smells in frequently changed, widely depended-on code, or ones that will mislead the next reader, are reasonable blockers. The decision should rest on context, not on the smell's name alone. A useful test is whether you can finish the sentence "this will cost us later because" with something specific. If you can, blocking is defensible. If you cannot, you are probably expressing a preference, and preferences are better handled as suggestions.
What if the author disagrees with my assessment? Ask what they know that you do not. They may have a deadline, a planned refactor, or a constraint you cannot see. If the risk is real, explain it in terms of future cost rather than preference. If it is minor, let it go and note it as a suggestion. Review is a negotiation about risk, not a contest of wills. Disagreement handled well often produces a better outcome than either position alone, because the author's context and the reviewer's perspective combine into a decision neither would have reached separately.
How do we keep decisions consistent across reviewers? Write down a handful of examples for your codebase: smells you block on, smells you merely mention, and smells you ignore. Revisit them as the system changes. Consistency comes from shared examples and open discussion, not from a rigid rulebook. The aim is a team that can explain its blocking decisions and change them when the evidence changes. A short written list, updated occasionally, does more for consistency than any amount of exhortation, because it gives reviewers something concrete to point at when a judgment call feels close.