Review recall and precision
Last updated .
What are recall and precision in code review?
Recall is the share of real defects a review finds, and precision is the share of its findings that are real; a useful reviewer needs both, since high recall with low precision buries the real bugs in noise.
How to measure them
- Take real pull requests with known, hand-labeled defects.
- Recall = labeled defects found ÷ labeled defects.
- Precision = real findings ÷ all findings, where each unmatched finding is checked against the code.
- Review each pull request more than once: results vary between runs.
Related: false positive.
Next: AI code review →