-
Notifications
You must be signed in to change notification settings - Fork 0
CodeReviewGuidelines
-
Avoid terms that might be interpreted as personal attacks (e.g., "idiotic" or "useless"). Assume that everyone is making their best effort.
-
Be moderate in your language. Avoid strong exaggerations like "always," "never," etc.
-
We're all on the same team. The intention is not to criticize but to produce better code.
-
Smaller, frequent pull requests are easier to manage than larger ones. Aim to limit the scope of code to approximately 200 lines for each review.
-
Focus on the Code, Not the Person: The goal is to elevate the quality of the code, not to showcase your expertise. Be constructive in your feedback.
-
Adhere to Established Standards: Stick to coding conventions and practices that are accepted within the team. Deviations must be justified.
-
Understand the Purpose: Make sure to understand the rationale behind the code you're reviewing. Go through any associated documentation or task definitions.
-
Clarify Importance: Distinguish between critical issues and lesser suggestions. Make it clear what needs to be amended before the code can be merged.
-
Invite Discussion: Ask questions like, "Have you considered isolating this logic into a separate method?" rather than giving direct instructions.
-
Self-Check: Review your own code to catch simple errors before requesting a review.
-
Details in Pull Requests: Include an explanatory text that provides reviewers with necessary context.
-
Respond to Reviews: Provide feedback on all comments. A simple "Done" or "Agreed" is often sufficient.
-
Be Receptive: Be open to critique and suggestions. Argue your case if needed, but be willing to consider alternatives.
-
Speed is a Virtue: The review should be quick to avoid potential conflicts during merging.
-
More Eyes, Better Outcome: Aim to have at least two reviewers for substantial code changes.