What are common mistakes to avoid in code reviews?
Common mistakes include reviewing too much code at once, focusing on style instead of substance, and making comments that feel personal. Effective reviews are timely, focused on correctness and design, and written constructively.
Reviewing too much at once
Large changes are hard to review thoroughly. Reviewers tend to skim, and real problems slip through. Encourage smaller, focused changes that can be understood in one sitting.
Focusing only on style
While consistent formatting matters, it should be enforced by automated tools such as linters and formatters where possible. Human review time is better spent on logic, edge cases, security, and design.
Being vague or harsh
Comments like "this is wrong" help nobody. Explain the concern, why it matters, and if possible suggest an alternative. Phrase feedback as questions or suggestions when you are unsure.
Delaying reviews
Long waits block teammates and encourage large batches of work. Aim to review promptly and set a shared expectation for turnaround.
Rubber-stamping
Approving without really reading the change defeats the purpose of review. If you cannot review something properly, say so and ask for help or more time.
Ignoring tests
Check that new behaviour has tests and that the tests actually check something meaningful.
Forgetting the author
Reviews are a conversation. Acknowledge good work, and remember that the author may be less experienced in that area.
When to ask for input
Review norms vary between teams and organisations. Agree on expectations with your colleagues, and ask an experienced team member if you are unsure how to give feedback on a specific kind of change.