TL;DR: When you focus code reviews on syntax, you miss architecture, security, design and intent.
Problems in view π
- Syntax fixation
- Design blindness
- Missed risks
- Bad feedback
- Useless discussions
- Reviewer fatigue
- False quality
- Shallow feedback
- Syntax Police
- Low team morale
Suggested solutions π
- Leave the boring work to the IA
- Automate style checks
- Review architecture first
- Discuss intent early with technical analysis and control points
- Enforce review roles
- Raise abstraction level
Refactorings βοΈ
Context π¬
When you review code, you choose where to spend your valuable human attention.
When you spend that attention on commas, naming trivia, or formatting, you ignore the parts that matter.
This smell appears when teams confuse cleanliness with correctness. Syntax looks clean. Architecture rots.
Sample Code π
Wrong β
<?php
class UserRepository {
public function find($id){
$conn = mysqli_connect(
"localhost", // Pull Request comment - Bad indentation
"root",
"password123",
"app"
);
$query = "Select * FROM users WHERE id = $id";
// Pull Request comment - SELECT should be uppercase
return mysqli_query($conn, $query);
}
}
Right π
<?php
final class UserRepository {
private Database $database;
public function __construct(Database $database) {
$this->database = $database;
}
public function find(UserId $id): User {
return $this->database->fetchUser($id);
}
}
// You removed credentials, SQL, and infrastructure noise.
// Now reviewers can discuss design and behavior.
Detection π
[X] Manual
You can detect this smell by examining pull request comments.
When you see multiple comments about formatting, indentation, trailing commas, or variable naming conventions, you lack proper automation.
Check your continuos integration pipeline configuration. If you don't enforce linting and formatting before human review, you force reviewers to catch these issues manually.
Review your code review metrics. If you spend more time discussing style than architecture, you have this smell.
Automated tools like SonarQube, ESLint, and Prettier can identify when you don't enforce rules automatically.
Tags π·οΈ
- Standards
Level π
[x] Intermediate
Why the Bijection Is Important πΊοΈ
Code review represents the quality assurance process in the MAPPER.
When you break the bijection by having humans perform mechanical checks instead of judgment-based evaluation, you mismodel the review process.
You no longer validate whether the concepts, rules, and constraints match the domain.
You only validate formatting.
That gap creates systems that look clean and behave wrong.
The broken bijection manifests as reviewer fatigue and missed bugs. You restore proper mapping by separating mechanical verification (automated) from architectural review (human).
AI Generation π€
AI generators often create this smell.
They produce syntactically correct code with weak boundaries and unclear intent.
AI Detection π§²
AI can reduce this smell when you instruct it to focus on architecture, invariants, and risks instead of formatting.
Give them clear prompts and describe the role and skills of the reviewer.
Try Them! π
Remember: AI Assistants make lots of mistakes
Suggested Prompt: Find real problems in the code beyond nitpicking, review this code focusing on architecture, responsibilities, security risks, and domain alignment. Ignore formatting and style.
Steal My Prompts (Without Proper Instructions) π΅
Steal My Prompts (With Specific Instructions) π©βπ«
Conclusion π
Code reviews should improve systems, not satisfy linters.
When you automate syntax, you free humans to think.
That shift turns reviews into real design conversations.
Related Reading π©ββ€οΈβπβπ¨
https://hackernoon.com/code-smell-06-trying-to-be-a-clever-programmer
https://hackernoon.com/how-to-find-the-stinky-parts-of-your-code-part-x-i7r34uj
https://hackernoon.com/code-smell-05-comment-abusers
https://hackernoon.com/how-to-find-the-stinky-parts-of-your-code-part-xxxv
https://hackernoon.com/code-smell-236-what-to-do-with-excessively-long-code-lines
Disclaimer: Code Smells are my opinion.
Credits: Photo by Portuguese Gravity on Unsplash
Design is about intent, not syntax.
Grady Booch
This article is part of the CodeSmell Series.