Setting code review guidelines
Capture the problem the guideline should solve and when an exception makes sense. That gives the next reviewer the reasoning behind the rule.
Example entryCap changes for review at 400 lines
We missed two bugs in large pull requests in one week. We’re setting a 400-line limit per review. Larger changes should be split so each part can be reviewed on its own.
Follow-up
A generated file pushed a small logic change over the limit. Authors will now flag generated files and list the size of the code that actually needs reviewing.
Questions to copy
- What happened in earlier reviews?
- Which guideline are we adopting, and who should it help?
- How will we handle changes that don’t fit the rule?
- What would tell us we’re catching problems more reliably?