It's not just about catching bugs. It's about knowledge sharing, maintaining consistency, and building a culture of psychological safety.
Based on engineering practices from Google, Microsoft, and open source giants.
Critique the code, not the person. Use "We" instead of "You". Frame feedback as questions ("What if we used...") rather than commands.
The best reviews happen on changes of 200-400 lines. Massive PRs lead to "LGTM" blindness and cognitive overload.
Don't waste human brainpower on whitespace or indentation. Use linters (Prettier, ESLint) and CI checks for style.
Hover over the lines in the "Bad Code" to see reviewer comments. Then click "Fix It" to see the refactor.
const for arrays that aren't reassigned. Also, 'final' is a reserved word in some contexts/confusing.
var. Use let or better yet, array methods like .map() or .filter().
MIN_ADULT_AGE.
The original code worked, but it was fragile and hard to read. Hover over the lines on the left to see the issues.
Code reviews aren't just about logic errors—they are about readability and maintainability.
Select the categories relevant to your current PR to generate a custom checklist.