Sorry, you need to enable JavaScript to visit this website.
Skip to main content
Welcome to our website! Explore our services and portfolio.

General Code Review / PR Standards and Guidelines

Submitted by admin on

The following is a collection standards, guidelines, and cultural norms come from common industry practices (Google, Microsoft, many open-source projects, and engineering blogs/roadmaps).

Core Cultural Principles (Document these explicitly in team handbook or wiki)

1.  “You are not your code” / “Attack the code, never the person”
Feedback must target the code / design / implementation — never imply the author is incompetent, lazy, junior, etc.
Bad: “This is obviously wrong / how did you not see this?”
Good: “This section can lead to X problem because Y — what do you think about Z alternative?”

2.  Assume good intent / Assume positive intent / Assume miscommunication over malice
Start from the premise that the author was trying to do the right thing and may have had reasons or context you don’t see yet.
Phrase comments as questions when uncertain: “What’s the reasoning behind choosing this approach here?” instead of declarative statements that sound accusatory.

3.  Be kind / Be respectful / Professional tone always
Many teams literally write “Be kind” or “Write comments you would want to receive” in their guidelines.
Avoid sarcasm, passive-aggression, ALL CAPS, excessive exclamation marks, or emojis that can be read as mocking.

4.  Focus on improvement, not perfection
The goal is better code and better developers over time — not flawless code today.
Explicitly state in guidelines: “Nitpicks that don’t meaningfully improve maintainability, readability, performance, or correctness should be optional or omitted.”

Practical Rules to Limit Nitpicking and Bike-shedding

5.  Tier comments by importance / Use labels or prefixes
Very common and effective:

prefix/label - meaning:

 

No Prefix: Important / security / correctness / bug

Nit / Optional / Suggestion: Minor, stylistic, personal preference

Question: Seeking understanding

 

Many teams enforce: anything without a prefix is assumed important; pure nits must be labeled “nit”.

6.  Style / formatting issues belong to automation
Enforce: “If a linter / formatter / style-check can catch it → don’t comment on it.”
This eliminates 70–80% of the most demoralizing 



.

 

 

 

 

7.  “One nit per comment is fine — ten nits in twenty comments is noise”
Encourage batching minor suggestions or putting them in one “Nit collection” comment at the end.

8.  Praise / positive feedback is required or strongly encouraged
Many teams adopt a soft rule: try to find at least one genuinely good thing to call out per review (especially for juniors or large changes).
This balances the emotional weight and prevents reviews from feeling like pure criticism.

Process Safeguards

9.  Definition of “reviewable” / “mergeable”
Clearly document what must be true for a PR to be approvable (tests pass, linter clean, meaningful description, etc.).
Once those are met, purely subjective preferences should not block merge.

10.  Time-box nit debates / Have an escalation path
If two people are arguing over a non-blocking preference → either drop it or take it to a quick sync / tech lead decision.
No PR should sit blocked for days over argument about brace placement.

11.  Regular retrospectives on review culture
Every so often ask anonymously: “Do code reviews feel constructive or demoralizing?” and “Are we spending too much time on non-substantive comments?”