BossaBox

This is the playbook for engineering-playbook

Reviewer Guidance

Since parts of reviews can be automated via linters and such, human reviewers can focus on architectural and functional correctness. Human reviewers should focus on:

Code reviews should use the below guidance and checklists to ensure positive and effective code reviews.

General guidance

Understand the code you are reviewing

Take your time and keep focus on scope

You shouldn’t review code hastily but neither take too long in one sitting. If you have many pull requests (PRs) to review or if the complexity of code is demanding, the recommendation is to take a break between the reviews to recover and focus on the ones you are most experienced with.

Always remember that a goal of a code review is to verify that the goals of the corresponding task have been achieved. If you have concerns about the related, adjacent code that isn’t in the scope of the PR, address those as separate tasks (e.g., bugs, technical debt). Don’t block the current PR due to issues that are out of scope.

Foster a positive code review culture

Code reviews play a critical role in product quality and it should not represent an arena for long discussions or even worse a battle of egos. What matters is a bug caught, not who made it, not who found it, not who fixed it. The only thing that matters is having the best possible product.

Be considerate

First Design Pass

Pull Request Overview

User Facing Changes

Design

Code Quality Pass

Complexity

Naming/readability

Error Handling

Functionality

Style

Tests