1 Overview
Most teams treat code review as a bug hunt. The reviewer scans the diff line by line, looking for an off-by-one error, a missing null check, or a swapped argument. When nothing obvious appears, the review is approved. This feels diligent, but it quietly wastes the most valuable thing a second pair of eyes can offer: a structural perspective on the change.
Code smells are the surface signals of deeper design problems. A long function, a tangle of conditionals, duplicated logic, a class that knows too much about another, a parameter list that keeps growing. None of these are bugs by themselves. They are patterns that make bugs easier to introduce and harder to find later. A review that targets smells is not ignoring correctness. It is investing in the conditions that produce correctness over time.
This article explains why smell-focused review outperforms bug-focused review, how to run it as a repeatable team process, and where tooling can help without replacing judgment. The goal is not to turn every review into a refactoring seminar. It is to make structural quality a normal, lightweight part of how changes get approved.
2 Why the usual advice misses the point
The standard guidance for reviewers is to check logic, edge cases, error handling, and tests. That advice is not wrong, but it is incomplete in a way that compounds. Bugs found in review are usually shallow bugs, the kind a careful reader can spot in a diff. The dangerous defects live in interactions between components, in state that changes over time, and in code paths that only appear under specific runtime conditions. A line-by-line reading of a diff is a poor instrument for finding those.
Worse, bug-hunting review creates a false sense of security. When a review passes with no comments, teams assume the change is safe. But the absence of visible bugs says nothing about whether the change made the system harder to reason about. A patch can be functionally correct and still introduce a smell that will generate three bugs next quarter. Reviewers who only look for what is broken miss what is fragile.
There is also a social cost. Reviewers who hunt for bugs tend to write comments that are either trivial or adversarial. Nitpicks about style sit next to terse demands for changes, and authors learn to dread the process. Smell-focused review gives reviewers a shared vocabulary for structural concerns, which makes feedback more consistent, more teachable, and less personal. The conversation shifts from whether a line is wrong to whether the design will hold up.
3 The core idea in practice
A code smell is a heuristic, not a verdict. When you notice a long method, you are not certain it is bad. You are noticing that it is doing more than one thing, that it is hard to name precisely, or that testing it requires elaborate setup. That observation is the raw material of a good review comment. The reviewer's job is to describe the smell, explain the risk it creates, and let the author decide how to respond.
In practice, this means reading the diff at two levels. First, skim for obvious correctness problems, because those still matter. Second, and more importantly, read for structure. Ask what responsibilities the change introduces, whether existing abstractions still hold, whether the new code duplicates something nearby, and whether the tests describe behavior or just mirror the implementation. These questions surface smells that a correctness pass would skip entirely.
Smells are also a leading indicator. A function with many boolean parameters tends to grow branches. A class with many dependencies tends to become a coordination point for unrelated changes. Duplicated validation logic tends to drift out of sync. None of these guarantees a defect, but each raises the probability. Reviewers who name the smell early give the team a chance to fix the cause instead of patching symptoms later. That is the core shift: from reacting to defects to shaping the conditions that prevent them.
4 A repeatable review process
Start by agreeing on a small shared vocabulary of smells your team cares about. You do not need an exhaustive catalog. Pick five to eight that show up often in your codebase, such as long functions, duplicated logic, feature envy, primitive obsession, or unclear naming. Write one sentence for each describing what it looks like and why it matters. This list becomes the lens reviewers use, and it keeps feedback consistent across people and teams.
Next, structure the review itself in passes. A first pass checks that the change does what it claims and that tests cover the behavior. A second pass reads for smells using the shared list. A third pass considers whether the change fits the surrounding design. Keeping these passes separate prevents the common failure where a reviewer gets absorbed in one difficult function and never looks at the shape of the whole change. It also gives authors a predictable sequence to respond to.
Finally, make the outcome actionable. A smell comment should say what you noticed, why it creates risk, and what options exist. It should not demand a specific rewrite unless the rewrite is genuinely required. Some smells are worth fixing now, some are worth tracking, and some are acceptable given the context. Reviewers who rank their concerns help authors prioritize instead of treating every comment as equally urgent. Over time, this process turns review into a lightweight design conversation rather than a gate.
5 Common mistakes reviewers make
The first mistake is reviewing only for correctness. This is the default mode for most engineers, and it feels productive because it produces concrete findings. But it leaves the structural causes of future defects untouched. A reviewer who approves a correct but tangled change has done half the job. The second mistake is rewriting the code in the review. When a reviewer pastes a full replacement implementation, they take ownership away from the author and turn review into a lecture. Describing the smell and its risk is almost always more effective than supplying the fix.
The third mistake is treating every smell as a blocker. Not all smells deserve immediate attention. A small duplication in a test helper is different from a sprawling service class at the center of the system. Reviewers who refuse to merge until every smell is resolved create friction and slow delivery without proportional benefit. Ranking concerns by impact keeps the process credible.
A fourth, subtler mistake is using smells as a weapon. Naming a pattern is not the same as proving a problem. Reviewers who cite smell names without explaining the concrete risk come across as dogmatic. The best smell comments are specific: this function has grown to handle three distinct cases, and each new case adds a branch that is hard to test. That kind of comment invites a real conversation instead of a defensive one.
6 Tooling that helps (and where it fails)
Static analysis and linters can detect some smells mechanically. They are good at measuring function length, cyclomatic complexity, duplication, and unused code. When configured well, they surface candidates that deserve a human look. They are also consistent and tireless, which makes them useful for enforcing a baseline across a team. A dashboard that tracks complexity trends over time can show whether a codebase is drifting toward or away from maintainability.
Where tooling fails is judgment. A tool can tell you a function is long, but it cannot tell you whether the length reflects genuine complexity or a sequence of simple steps. It can flag duplication, but it cannot tell you whether the duplicated code should be unified or whether the two copies are coincidentally similar and likely to diverge. It can measure coupling, but it cannot weigh that coupling against the cost of introducing an abstraction. Tools produce signals, not decisions.
The practical approach is to let tools handle the mechanical, objective checks and reserve human review for interpretation. Configure linters to catch the smells that are unambiguous and cheap to fix automatically. Use dashboards to spot trends worth discussing in retrospectives. Then train reviewers to focus their attention on the smells tools cannot judge: naming, responsibility, cohesion, and whether an abstraction earns its keep. Tooling narrows the search space; reviewers supply the meaning.
7 Frequently asked questions
Does smell-focused review mean I should stop looking for bugs? No. Correctness still matters, and obvious defects should always be flagged. The point is that bug-hunting alone is a weak strategy because it catches only shallow defects and ignores the structural conditions that generate deeper ones. Treat correctness as one pass among several, not the whole review.
How do I raise a smell without sounding like I am attacking the author? Describe what you observed and the risk it creates, then ask a question. For example, note that a function now handles several distinct responsibilities and ask whether it might be split. This frames the concern around the code and its future, not the person who wrote it. It also leaves room for the author to explain context you may not have.
What if my team disagrees about which smells matter? Start small. Pick a few smells that clearly cause pain in your codebase and agree on them explicitly. Revisit the list periodically. A shared, evolving vocabulary is more useful than a perfect taxonomy, and it gives reviewers a consistent basis for feedback without turning every discussion into a debate about definitions.
Should every review comment be about a smell? No. Reviews should also confirm tests, check for security and performance concerns where relevant, and verify that the change matches its stated intent. Smells are one lens, not the only one. The value comes from making that lens a regular part of how your team reads code together.